/* ==========================================================================
   DUSTFALL: ASH & IRON — WAR THEATER STYLESHEET
   Bronze-Age Naval MMORTS • Nexsign Studio
   Palette: Deep Obsidian, Battle Crimson, Burnished Gold & Bronze
   ========================================================================== */

:root {
    --bg-dark: #080a10;
    --bg-surface: #0f131d;
    --bg-card: #151b29;
    --bg-card-hover: #1b2335;
    --bg-elevated: #1e273a;
    
    --war-red: #dc2626;
    --war-red-glow: rgba(220, 38, 38, 0.45);
    --war-red-dark: #991b1b;
    --war-crimson: #ef4444;

    --gold-bright: #fbbf24;
    --gold-main: #f59e0b;
    --gold-burnished: #d97706;
    --gold-glow: rgba(245, 158, 11, 0.35);

    --bronze-dark: #78350f;
    --bronze-hairline: #3b2816;
    --border-metal: #2a3449;
    --border-highlight: #475569;

    --sea-cyan: #06b6d4;
    --sea-deep: #0e3b54;

    --text-white: #ffffff;
    --text-chalk: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font-heading: 'Cinzel', 'Cinzel Decorative', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-war: 0 10px 30px rgba(0, 0, 0, 0.7);
    --shadow-red: 0 0 25px rgba(220, 38, 38, 0.25);
    --shadow-gold: 0 0 25px rgba(245, 158, 11, 0.2);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-chalk);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background: radial-gradient(circle at 50% 0%, #151b2a 0%, var(--bg-dark) 55%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   WAR NAVIGATION HEADER
   ========================================================================== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 10, 16, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-metal);
    height: 76px;
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-emblem {
    display: flex;
    align-items: center;
    gap: 12px;
}

.emblem-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2a110d 0%, #171109 100%);
    border: 1px solid var(--gold-main);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-white);
    line-height: 1.1;
}

.brand-sub {
    display: block;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: var(--gold-bright);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 22px;
    align-items: center;
}

.nav-links a {
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover {
    color: var(--gold-bright);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--war-red);
    transition: var(--transition);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.server-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--sea-cyan);
    font-weight: 600;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--sea-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--sea-cyan);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--border-metal);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    overflow: hidden;
}

.lang-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-dim);
    background: transparent;
}

.lang-btn.active {
    background: var(--gold-main);
    color: #000;
}

.btn-nav-play {
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--war-red) 0%, var(--war-red-dark) 100%);
    color: var(--text-white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px var(--war-red-glow);
}

.btn-nav-play:hover {
    box-shadow: 0 0 25px var(--war-red);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    color: var(--text-chalk);
    padding: 8px;
}

/* ==========================================================================
   BUTTONS & COMMON UI
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-war-primary {
    background: linear-gradient(135deg, var(--war-red) 0%, #881313 100%);
    color: var(--text-white);
    border: 1px solid rgba(255, 120, 120, 0.3);
    box-shadow: var(--shadow-red);
}

.btn-war-primary:hover {
    background: linear-gradient(135deg, #f83232 0%, #aa1616 100%);
    box-shadow: 0 0 35px var(--war-red);
    transform: translateY(-2px);
}

.btn-war-gold {
    background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-burnished) 100%);
    color: #0a0d14;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-gold);
}

.btn-war-gold:hover {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-main) 100%);
    box-shadow: 0 0 35px var(--gold-main);
    transform: translateY(-2px);
}

.btn-war-outline {
    background: rgba(21, 27, 41, 0.8);
    color: var(--text-chalk);
    border: 1px solid var(--border-metal);
}

.btn-war-outline:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold-main);
    color: var(--gold-bright);
    transform: translateY(-2px);
}

.section-head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 54px;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--war-crimson);
    text-transform: uppercase;
    margin-bottom: 12px;
    background: rgba(220, 38, 38, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   HERO: TOTAL WAR THEATER
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 75% 30%, rgba(220, 38, 38, 0.12) 0%, transparent 60%),
                radial-gradient(circle at 20% 70%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-pretitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-bright);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(245, 158, 11, 0.08);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold-main);
    width: fit-content;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    line-height: 1.08;
    letter-spacing: 0.02em;
    color: var(--text-white);
    text-transform: uppercase;
}

.hero-title .title-accent {
    color: var(--war-crimson);
    display: block;
    text-shadow: 0 0 35px var(--war-red-glow);
}

.hero-lead {
    font-size: 1.12rem;
    color: var(--text-chalk);
    line-height: 1.75;
    max-width: 600px;
}

.hero-cta-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-sublinks {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-sublink {
    font-size: 0.86rem;
    font-family: var(--font-mono);
    color: var(--gold-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-sublink:hover {
    color: var(--gold-bright);
    text-decoration: underline;
}

.hero-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border-metal);
}

.stat-cell {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold-bright);
    line-height: 1.1;
}

.stat-text {
    font-size: 0.74rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Hero Right Showcase */
.hero-diorama {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-metal);
    overflow: hidden;
    box-shadow: var(--shadow-war), var(--shadow-red);
}

.diorama-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.diorama-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-diorama:hover .diorama-frame img {
    transform: scale(1.04);
}

.diorama-hud {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(0deg, rgba(8, 10, 16, 0.95) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.diorama-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--sea-cyan);
    letter-spacing: 0.1em;
}

.diorama-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-white);
    font-weight: 700;
}

/* ==========================================================================
   GAMEPLAY LOOP: THE 4 PILLARS OF WAR
   ========================================================================== */
.gameplay-section {
    padding: 100px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-metal);
    border-bottom: 1px solid var(--border-metal);
    position: relative;
}

.loop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.loop-card {
    background: var(--bg-card);
    border: 1px solid var(--border-metal);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.loop-card:hover {
    transform: translateY(-6px);
    border-color: var(--war-red);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), var(--shadow-red);
}

.loop-step-badge {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--gold-bright);
    letter-spacing: 0.14em;
    margin-bottom: 16px;
}

.loop-icon-box {
    width: 52px;
    height: 52px;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--war-crimson);
    margin-bottom: 20px;
}

.loop-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    line-height: 1.25;
}

.loop-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 20px;
}

.loop-sub-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--sea-cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   REAL MEDIA GALLERY
   ========================================================================== */
.gallery-section {
    padding: 100px 0;
    position: relative;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    padding: 10px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-metal);
    border-radius: 30px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-filter-btn:hover {
    color: var(--text-white);
    border-color: var(--gold-main);
}

.gallery-filter-btn.active {
    background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-burnished) 100%);
    color: #000;
    border-color: var(--gold-bright);
    box-shadow: 0 0 15px var(--gold-glow);
}

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

.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-metal);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-main);
    box-shadow: var(--shadow-war), var(--shadow-gold);
}

.gallery-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.gallery-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-thumb img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 10, 16, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    width: 50px;
    height: 50px;
    background: var(--gold-main);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--gold-glow);
}

.gallery-inspect-text {
    font-size: 0.76rem;
    font-family: var(--font-mono);
    color: var(--text-white);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(8, 10, 16, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--gold-bright);
    letter-spacing: 0.06em;
}

.gallery-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
}

.gallery-card-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(5, 7, 12, 0.96);
    backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

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

.lightbox-wrapper {
    max-width: 1100px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--gold-main);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), var(--shadow-gold);
    display: flex;
    flex-direction: column;
    position: relative;
}

.lightbox-image-box {
    position: relative;
    background: #000;
    max-height: 68vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image-box img {
    max-height: 68vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.lightbox-details {
    padding: 24px 30px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-metal);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lightbox-text {
    max-width: 780px;
}

.lightbox-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold-bright);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 6px;
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 4px;
}

.lightbox-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.lightbox-counter {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    color: var(--text-dim);
}

.lightbox-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-metal);
    color: var(--text-white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-close-btn:hover {
    background: var(--war-red);
}

.lightbox-nav-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(8, 10, 16, 0.75);
    border: 1px solid var(--border-metal);
    color: var(--text-white);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.lightbox-nav-btn:hover {
    background: var(--gold-main);
    color: #000;
}

.lightbox-prev-btn { left: 16px; }
.lightbox-next-btn { right: 16px; }

/* ==========================================================================
   WAR MACHINE / UNITS MATRIX
   ========================================================================== */
.units-section {
    padding: 100px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-metal);
    border-bottom: 1px solid var(--border-metal);
}

.unit-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.unit-filter-btn {
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-metal);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.unit-filter-btn.active {
    background: var(--war-red);
    color: var(--text-white);
    border-color: var(--war-crimson);
    box-shadow: 0 0 15px var(--war-red-glow);
}

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

.unit-war-card {
    background: var(--bg-card);
    border: 1px solid var(--border-metal);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
}

.unit-war-card:hover {
    border-color: var(--gold-main);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.unit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.unit-card-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-white);
    font-weight: 700;
}

.unit-card-role {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold-bright);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.unit-category-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 700;
}

.cat-land { background: rgba(220, 38, 38, 0.15); color: var(--war-crimson); }
.cat-naval { background: rgba(6, 182, 212, 0.15); color: var(--sea-cyan); }
.cat-mythic { background: rgba(245, 158, 11, 0.15); color: var(--gold-bright); }

.unit-stats-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--bg-dark);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-pill {
    display: flex;
    flex-direction: column;
}

.stat-lbl {
    font-size: 0.66rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.stat-val {
    font-size: 0.88rem;
    font-family: var(--font-mono);
    color: var(--text-chalk);
}

.highlight-atk { color: var(--war-crimson); font-weight: 800; }
.highlight-naval { color: var(--sea-cyan); font-weight: 800; }

.unit-cost-foot {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   HALL OF WARLORDS / RANKINGS
   ========================================================================== */
.ladder-section {
    padding: 100px 0;
}

.ladder-table-box {
    background: var(--bg-card);
    border: 1px solid var(--border-metal);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-war);
}

.ladder-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.ladder-table th {
    background: var(--bg-surface);
    padding: 18px 24px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-metal);
}

.ladder-table td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.94rem;
}

.ladder-table tr:hover td {
    background: var(--bg-card-hover);
}

.rank-col { width: 80px; font-family: var(--font-mono); }
.player-col { font-weight: 700; color: var(--text-white); }
.alliance-col { color: var(--text-chalk); }
.cities-col { width: 120px; font-family: var(--font-mono); color: var(--text-muted); }
.score-col { width: 150px; font-family: var(--font-mono); color: var(--gold-bright); }

.alliance-tag { color: var(--gold-main); font-weight: 700; }
.rank-1 td { background: rgba(245, 158, 11, 0.06); }
.rank-1 .rank-col { color: var(--gold-bright); }

/* ==========================================================================
   ANDROID SHOWCASE & DOWNLOAD HUB
   ========================================================================== */
.android-section {
    padding: 100px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-metal);
    border-bottom: 1px solid var(--border-metal);
}

.android-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.android-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 28px;
}

.and-feat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-metal);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.and-feat-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--gold-bright);
    margin-bottom: 8px;
}

.and-feat-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.download-hub-card {
    background: linear-gradient(135deg, #1b2336 0%, #111624 100%);
    border: 1px solid var(--gold-main);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-war), var(--shadow-gold);
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.hub-apk-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--gold-main);
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gold-bright);
    margin: 0 auto;
}

.hub-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-white);
    line-height: 1.15;
}

.hub-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hub-meta {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-dim);
}

/* ==========================================================================
   WAR COUNCIL WEB PORTAL
   ========================================================================== */
.portal-section {
    padding: 100px 0;
}

.portal-container {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-metal);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-war);
    overflow: hidden;
}

.portal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-metal);
}

.portal-tab-btn {
    padding: 16px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid transparent;
}

.portal-tab-btn.active {
    color: var(--gold-bright);
    border-bottom-color: var(--gold-main);
    background: rgba(245, 158, 11, 0.05);
}

.portal-panel {
    padding: 36px;
    display: none;
}

.portal-panel.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-metal);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--gold-main);
    outline: none;
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Dashboard */
.dash-card {
    padding: 36px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-metal);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.dash-city-box {
    background: var(--bg-dark);
    border: 1px solid var(--border-metal);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.dash-res-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.res-cell {
    background: var(--bg-card);
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.res-val {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--gold-bright);
    font-weight: 700;
}

/* ==========================================================================
   FOOTER & COMPLIANCE
   ========================================================================== */
.site-footer {
    padding: 60px 0 40px;
    background: #05070a;
    border-top: 1px solid var(--border-metal);
    font-size: 0.86rem;
    color: var(--text-dim);
}

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

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a:hover {
    color: var(--gold-bright);
}

/* Toast Popup */
.toast-popup {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 3000;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #111;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: none;
}

.toast-popup.active { display: block; animation: slideUp 0.3s ease; }
.toast-success { background: #064e3b; border-color: #059669; }
.toast-error { background: #7f1d1d; border-color: #dc2626; }
.toast-info { background: #1e293b; border-color: #3b82f6; }

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

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .loop-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .units-grid { grid-template-columns: repeat(2, 1fr); }
    .android-split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .site-nav { height: 68px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(8, 10, 16, 0.98);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border-metal);
        gap: 18px;
    }
    .nav-links.open { display: flex; }
    .mobile-menu-toggle { display: block; }
    .btn-nav-play { display: none; }
    .hero-title { font-size: 2.6rem; }
    .hero-stats-strip { grid-template-columns: repeat(2, 1fr); }
    .loop-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .units-grid { grid-template-columns: 1fr; }
    .android-features-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}
