/* assets/css/landing.css - AAA Medieval Strategy Game Portal Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@700&family=Heebo:wght@300;400;500;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-deep: #080604;
    --bg-dark: #0e0a07;
    --bg-card: rgba(20, 15, 10, 0.85);
    --bg-card-hover: rgba(28, 21, 14, 0.95);
    --gold-primary: #d4af37;
    --gold-bright: #ffd875;
    --gold-dim: #997828;
    --gold-glow: rgba(212, 175, 55, 0.35);
    --border-gold: rgba(184, 138, 59, 0.35);
    --border-gold-bright: rgba(255, 216, 117, 0.65);
    --text-primary: #f2e9d8;
    --text-muted: #a69885;
    --text-gold: #ffd875;
    --crimson: #841b1b;
    --crimson-glow: rgba(132, 27, 27, 0.4);
    --font-serif: 'Cinzel', 'Georgia', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] {
    --font-sans: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-sans);
}

body {
    min-height: 100vh;
    background: var(--bg-deep);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Atmospheric Floating Embers Canvas */
#embers-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.65;
}

/* Background Texture Vignette */
.ambient-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(5, 4, 3, 0.85) 90%),
                linear-gradient(to bottom, rgba(8, 6, 4, 0.6) 0%, transparent 15%, transparent 85%, rgba(8, 6, 4, 0.95) 100%);
    z-index: 2;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 3;
}

/* -------------------------------------------------------------------------- */
/* HEADER & NAVIGATION                                                        */
/* -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    z-index: 100;
    background: rgba(10, 8, 6, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-gold);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(8, 6, 4, 0.96);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

.header-container {
    max-width: 1360px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-crest {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 10px var(--gold-glow));
    transition: transform 0.4s ease;
}

.brand:hover .brand-crest {
    transform: scale(1.08) rotate(3deg);
}

.brand-title-wrap {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--gold-bright);
    text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 12px var(--gold-glow);
    line-height: 1.1;
}

.brand-sub {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-bright);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-primary), transparent);
    transition: var(--transition);
}

[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
    background: linear-gradient(270deg, var(--gold-primary), transparent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(28, 20, 13, 0.7);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 3px 5px;
}

.lang-btn {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 14px;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: var(--gold-bright);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--gold-primary) 0%, #8c6e26 100%);
    color: #0c0906;
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Header Buttons */
.btn-login {
    color: var(--gold-bright);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    background: rgba(30, 22, 15, 0.5);
    transition: var(--transition);
    cursor: pointer;
}

.btn-login:hover {
    background: rgba(50, 36, 24, 0.9);
    border-color: var(--gold-bright);
    box-shadow: 0 0 14px var(--gold-glow);
}

.btn-cta {
    background: linear-gradient(135deg, #a88133 0%, #d4af37 50%, #825f1c 100%);
    color: #0a0704;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 9px 22px;
    border-radius: 6px;
    border: 1px solid #ffd875;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.55);
    filter: brightness(1.1);
}

.btn-cta svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.btn-cta:hover svg {
    transform: translateX(3px);
}

[dir="rtl"] .btn-cta:hover svg {
    transform: translateX(-3px) rotate(180deg);
}

[dir="rtl"] .btn-cta svg {
    transform: rotate(180deg);
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    width: 42px;
    height: 42px;
    color: var(--gold-bright);
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* HERO SECTION                                                               */
/* -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    background: #080604;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.42) contrast(1.15) saturate(1.1);
    transform: scale(1.03);
    animation: heroBreathe 20s infinite alternate ease-in-out;
}

@keyframes heroBreathe {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.06); }
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,6,4,0.4) 0%, rgba(8,6,4,0.7) 60%, var(--bg-deep) 100%),
                radial-gradient(ellipse at 50% 40%, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
}

.hero-content {
    max-width: 820px;
    position: relative;
    z-index: 3;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--border-gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-bright);
    margin-bottom: 22px;
    text-transform: uppercase;
}

.hero-eyebrow .pulse-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: pulseGlow 2s infinite ease-in-out;
}

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

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 16px rgba(0,0,0,0.9);
}

.hero-title span {
    display: block;
    background: linear-gradient(135deg, #ffd875 0%, #d4af37 60%, #c4962c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
}

.hero-lede {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--text-primary);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 34px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-cta-lg {
    font-size: 16px;
    padding: 14px 34px;
    border-radius: 8px;
}

.hero-cta-ghost {
    background: rgba(22, 16, 11, 0.7);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-cta-ghost:hover {
    background: rgba(38, 28, 19, 0.9);
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    box-shadow: 0 0 16px var(--gold-glow);
}

/* User Welcome Banner if Logged In */
.user-banner-logged {
    background: linear-gradient(90deg, rgba(34, 25, 16, 0.95), rgba(46, 34, 21, 0.9));
    border: 1px solid var(--gold-bright);
    border-radius: 8px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 32px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.6), 0 0 20px var(--gold-glow);
}

.user-banner-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-banner-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--gold-bright);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Proof Metrics Strip */
.hero-stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(184, 138, 59, 0.25);
}

.hero-stat-card {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-bright);
    line-height: 1.1;
    margin-bottom: 4px;
    text-shadow: 0 0 12px var(--gold-glow);
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* -------------------------------------------------------------------------- */
/* SECTION COMMON STYLES                                                      */
/* -------------------------------------------------------------------------- */
.section {
    padding: 90px 0;
    position: relative;
    z-index: 3;
}

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

.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/* REALM REEL SHOWCASE (Interactive 4-Scene Hub)                              */
/* -------------------------------------------------------------------------- */
.reel-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(180deg, rgba(22, 16, 11, 0.75) 0%, rgba(14, 10, 7, 0.9) 100%);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.8), inset 0 0 30px rgba(212, 175, 55, 0.05);
}

.reel-visual-frame {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #544021;
    box-shadow: 0 14px 40px rgba(0,0,0,0.9), 0 0 25px rgba(212, 175, 55, 0.2);
    aspect-ratio: 16 / 10;
    background: #0c0906;
}

.reel-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.reel-visual-frame:hover .reel-screen-img {
    transform: scale(1.03);
}

.reel-badge-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(10, 8, 5, 0.85);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-bright);
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

[dir="rtl"] .reel-badge-tag {
    left: auto;
    right: 16px;
}

/* Reel Tabs Navigation */
.reel-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reel-tab-item {
    background: rgba(28, 20, 13, 0.4);
    border: 1px solid rgba(184, 138, 59, 0.2);
    border-radius: 8px;
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.reel-tab-item:hover {
    background: rgba(38, 27, 18, 0.7);
    border-color: rgba(184, 138, 59, 0.5);
}

.reel-tab-item.active {
    background: linear-gradient(90deg, rgba(46, 33, 21, 0.9) 0%, rgba(28, 20, 13, 0.95) 100%);
    border-color: var(--gold-bright);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6), inset 3px 0 0 var(--gold-bright);
}

[dir="rtl"] .reel-tab-item.active {
    box-shadow: 0 4px 20px rgba(0,0,0,0.6), inset -3px 0 0 var(--gold-bright);
}

.reel-tab-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.reel-tab-num {
    font-family: var(--font-serif);
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-bright);
    letter-spacing: 1.5px;
}

.reel-tab-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.reel-tab-body {
    display: none;
    padding-top: 8px;
}

.reel-tab-item.active .reel-tab-body {
    display: block;
    animation: fadeInTab 0.4s ease;
}

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

.reel-tab-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.reel-tab-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reel-tab-bullets li {
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.reel-tab-bullets li::before {
    content: '◆';
    color: var(--gold-primary);
    font-size: 9px;
}

/* -------------------------------------------------------------------------- */
/* TACTICAL DOCTRINES / MILITARY COMPANIES (4 Cards)                         */
/* -------------------------------------------------------------------------- */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.company-card {
    background: linear-gradient(180deg, rgba(24, 18, 12, 0.9) 0%, rgba(14, 10, 7, 0.95) 100%);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    padding: 28px 22px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    opacity: 0.4;
    transition: var(--transition);
}

.company-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-bright);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px var(--gold-glow);
}

.company-card:hover::before {
    opacity: 1;
}

.company-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

.company-name {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.company-units {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-bright);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.company-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* -------------------------------------------------------------------------- */
/* STRATEGIC PILLARS / TRADITIONS (3 Columns)                                 */
/* -------------------------------------------------------------------------- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.pillar-card {
    background: radial-gradient(circle at top, rgba(38, 28, 18, 0.6) 0%, rgba(14, 10, 7, 0.95) 100%);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    padding: 34px 26px;
    transition: var(--transition);
    text-align: center;
}

.pillar-card:hover {
    border-color: var(--gold-bright);
    box-shadow: 0 12px 30px rgba(0,0,0,0.8), 0 0 20px var(--gold-glow);
}

.pillar-roman {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 900;
    color: var(--gold-bright);
    opacity: 0.4;
    margin-bottom: 12px;
    line-height: 1;
}

.pillar-title {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.pillar-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/* HALL OF FAME LEADERBOARD (Live Table)                                      */
/* -------------------------------------------------------------------------- */
.ranking-table-frame {
    background: linear-gradient(180deg, rgba(20, 15, 10, 0.92) 0%, rgba(12, 9, 6, 0.98) 100%);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0,0,0,0.8);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ranking-table th {
    background: rgba(36, 26, 17, 0.8);
    color: var(--gold-bright);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-gold);
}

[dir="rtl"] .ranking-table th {
    text-align: right;
}

.ranking-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(184, 138, 59, 0.15);
    color: var(--text-primary);
}

.ranking-table tr:hover td {
    background: rgba(44, 32, 21, 0.4);
}

.rank-badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 12px;
    border: 1px solid var(--border-gold);
}

.rank-1 .rank-badge-pill {
    background: linear-gradient(135deg, #ffd700, #ffae00);
    color: #000;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    border: none;
}

.rank-2 .rank-badge-pill {
    background: linear-gradient(135deg, #e0e0e0, #a0a0a0);
    color: #000;
    border: none;
}

.rank-3 .rank-badge-pill {
    background: linear-gradient(135deg, #cd7f32, #8c4c1a);
    color: #fff;
    border: none;
}

.ruler-cell-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ruler-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gold-bright);
}

/* -------------------------------------------------------------------------- */
/* REGISTRATION / FOUNDING ROLL SECTION                                       */
/* -------------------------------------------------------------------------- */
.founding-section {
    position: relative;
    padding: 100px 0;
    background: #090705;
    overflow: hidden;
}

.founding-bg {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.4);
}

.founding-card {
    position: relative;
    z-index: 3;
    max-width: 780px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(28, 20, 14, 0.95) 0%, rgba(16, 11, 7, 0.98) 100%);
    border: 2px solid var(--border-gold-bright);
    border-radius: 12px;
    padding: 46px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 35px var(--gold-glow);
    backdrop-filter: blur(16px);
}

.founding-head {
    text-align: center;
    margin-bottom: 34px;
}

.founding-perks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}

.perk-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 4px 12px;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(14, 10, 7, 0.85);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-bright);
    box-shadow: 0 0 14px var(--gold-glow);
    background: rgba(20, 14, 10, 0.95);
}

.btn-submit-reg {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #c4962c 0%, #ffd875 50%, #997828 100%);
    color: #0b0805;
    border: 1px solid #ffe399;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
    transition: var(--transition);
    font-family: var(--font-serif);
    letter-spacing: 1px;
}

.btn-submit-reg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.65);
    filter: brightness(1.1);
}

/* Alert Notification */
.form-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-alert.error {
    background: rgba(132, 27, 27, 0.25);
    border: 1px solid #e53e3e;
    color: #fca5a5;
}

.form-alert.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #86efac;
}

/* -------------------------------------------------------------------------- */
/* LOGIN MODAL                                                                */
/* -------------------------------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 3, 2, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(180deg, rgba(28, 20, 13, 0.98) 0%, rgba(14, 10, 6, 0.98) 100%);
    border: 2px solid var(--border-gold-bright);
    border-radius: 10px;
    padding: 34px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.95), 0 0 30px var(--gold-glow);
    position: relative;
    transform: scale(0.92);
    transition: var(--transition);
}

.modal-backdrop.open .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

[dir="rtl"] .modal-close {
    right: auto;
    left: 16px;
}

.modal-close:hover {
    color: var(--gold-bright);
    transform: rotate(90deg);
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--gold-bright);
    text-align: center;
    margin-bottom: 6px;
}

.modal-desc {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
}

/* -------------------------------------------------------------------------- */
/* FOOTER                                                                     */
/* -------------------------------------------------------------------------- */
.site-footer {
    background: #050403;
    border-top: 1px solid var(--border-gold);
    padding: 60px 0 36px 0;
    position: relative;
    z-index: 3;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(184, 138, 59, 0.15);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

/* -------------------------------------------------------------------------- */
/* BESPOKE IMPERIAL MOBILE GAME DRAWER (Universal Portal)                     */
/* -------------------------------------------------------------------------- */
.mobile-portal-drawer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-portal-drawer.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 3, 2, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.drawer-panel {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 420px;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(45, 33, 20, 0.98) 0%, rgba(14, 10, 6, 0.99) 70%);
    border-inline-end: 2px solid var(--border-gold-bright);
    box-shadow: 0 0 60px rgba(0,0,0,0.98), 0 0 35px var(--gold-glow);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px 18px 36px 18px;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .drawer-panel {
    transform: translateX(100%);
    border-inline-end: none;
    border-inline-start: 2px solid var(--border-gold-bright);
}

.mobile-portal-drawer.open .drawer-panel {
    transform: translateX(0) !important;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(184, 138, 59, 0.2);
}

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

.drawer-crest {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.drawer-brand-text {
    display: flex;
    flex-direction: column;
}

.drawer-brand-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 900;
    color: var(--gold-bright);
    letter-spacing: 1.5px;
    line-height: 1.1;
}

.drawer-brand-sub {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.drawer-close-btn {
    width: 38px;
    height: 38px;
    background: rgba(30, 22, 14, 0.8);
    border: 1px solid var(--border-gold-bright);
    border-radius: 50%;
    color: var(--gold-bright);
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: var(--transition);
}

.drawer-close-btn:hover {
    background: rgba(50, 35, 20, 0.95);
    box-shadow: 0 0 14px var(--gold-glow);
    transform: rotate(90deg);
}

/* Decorative Marker */
.drawer-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--gold-bright);
    font-family: var(--font-serif);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.drawer-rule i {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 138, 59, 0.4), transparent);
}

/* Nav Cards List */
.drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(26, 18, 11, 0.7);
    border: 1px solid rgba(184, 138, 59, 0.25);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
}

.drawer-item-idx {
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 800;
    color: var(--gold-bright);
    min-width: 22px;
    letter-spacing: 0.5px;
}

.drawer-item-icon {
    font-size: 22px;
    line-height: 1;
    filter: drop-shadow(0 0 6px var(--gold-glow));
}

.drawer-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.drawer-item-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.drawer-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-item-arrow {
    font-size: 18px;
    color: var(--gold-primary);
    font-weight: bold;
    transition: transform 0.2s ease;
}

[dir="rtl"] .drawer-item-arrow {
    transform: rotate(180deg);
}

.drawer-nav-item:hover,
.drawer-nav-item:active {
    background: linear-gradient(90deg, rgba(46, 33, 21, 0.95) 0%, rgba(28, 20, 13, 0.95) 100%);
    border-color: var(--gold-bright);
    box-shadow: 0 4px 16px rgba(0,0,0,0.6), inset 3px 0 0 var(--gold-bright);
    transform: translateX(4px);
}

[dir="rtl"] .drawer-nav-item:hover,
[dir="rtl"] .drawer-nav-item:active {
    box-shadow: 0 4px 16px rgba(0,0,0,0.6), inset -3px 0 0 var(--gold-bright);
    transform: translateX(-4px);
}

.drawer-item-highlight {
    background: linear-gradient(90deg, rgba(48, 35, 20, 0.85) 0%, rgba(30, 22, 14, 0.9) 100%);
    border-color: var(--gold-bright);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}

.drawer-item-highlight .drawer-item-title {
    color: var(--gold-bright);
}

/* Drawer Footer Commands */
.drawer-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(184, 138, 59, 0.25);
}

.drawer-btn-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.drawer-btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px;
    font-size: 14px;
    border-radius: 8px;
    background: rgba(30, 22, 15, 0.85);
    color: var(--gold-bright);
    border: 1px solid var(--border-gold);
    cursor: pointer;
}

.drawer-btn-secondary:hover {
    background: rgba(45, 33, 22, 0.95);
    border-color: var(--gold-bright);
}

/* Full Language Selector Strip */
.drawer-lang-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(184, 138, 59, 0.15);
}

.drawer-lang-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drawer-lang-pills {
    display: flex;
    gap: 8px;
}

.drawer-lang-pill {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-muted);
    background: rgba(22, 16, 10, 0.8);
    border: 1px solid var(--border-gold);
    transition: var(--transition);
}

.drawer-lang-pill:hover {
    color: var(--gold-bright);
    border-color: var(--gold-bright);
}

.drawer-lang-pill.active {
    background: linear-gradient(135deg, var(--gold-primary), #8c6e26);
    color: #000;
    border-color: var(--gold-bright);
    box-shadow: 0 0 12px var(--gold-glow);
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE MEDIA QUERIES                                                   */
/* -------------------------------------------------------------------------- */
.mobile-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .reel-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 960px) {
    /* Hide desktop nav and desktop buttons */
    .desktop-nav {
        display: none !important;
    }
    .desktop-only-btn {
        display: none !important;
    }

    /* Show Mobile Toggle Button */
    .mobile-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: rgba(30, 22, 14, 0.85);
        border: 1px solid var(--border-gold-bright);
        border-radius: 8px;
        color: var(--gold-bright);
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 0 14px rgba(0,0,0,0.7), 0 0 8px var(--gold-glow);
        user-select: none;
    }

    .mobile-toggle:hover,
    .mobile-toggle.is-active {
        background: rgba(50, 36, 22, 0.95);
        border-color: #ffe399;
        box-shadow: 0 0 18px var(--gold-glow);
    }

    .hamburger-icon {
        font-size: 22px;
        line-height: 1;
        transition: transform 0.3s ease;
    }

    .mobile-toggle.is-active .hamburger-icon {
        transform: rotate(90deg);
    }

    /* Top Bar Header Sizing */
    .site-header {
        height: 70px;
        z-index: 1000;
    }

    .header-container {
        padding: 0 16px;
    }

    .brand-crest {
        width: 40px;
        height: 40px;
    }

    .brand-title {
        font-size: 19px;
    }

    .header-actions {
        gap: 10px;
    }

    .lang-switcher {
        padding: 2px 4px;
    }

    .lang-btn {
        padding: 3px 8px;
        font-size: 11px;
    }

    /* Form & Hero Responsive Adjustments */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .founding-card {
        padding: 30px 20px;
    }

    .hero-section {
        padding-top: 100px;
    }
}

@media (max-width: 520px) {
    .site-header {
        height: 64px;
    }

    .header-container {
        padding: 0 12px;
    }

    .brand {
        gap: 8px;
    }

    .brand-crest {
        width: 34px;
        height: 34px;
    }

    .brand-title {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .brand-sub {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }

    .lang-switcher {
        padding: 1px 3px;
    }

    .lang-btn {
        padding: 3px 6px;
        font-size: 11px;
    }

    .mobile-toggle {
        width: 38px;
        height: 38px;
    }

    .hamburger-icon {
        font-size: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions a,
    .hero-actions button {
        text-align: center;
        justify-content: center;
    }

    .hero-stats-strip {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .drawer-panel {
        width: 94%;
        padding: 18px 14px 28px 14px;
    }
}
