/* ==========================================================================
   URG SIM Gameplay Mod - Refined Modern Dark Theme (Brighter & Sleek)
   ========================================================================== */

:root {
    --bg-dark: #0F141C;
    --bg-card: #18202C;
    --bg-card-hover: #202B3B;
    --accent-gold: #D4AF37;
    --accent-gold-light: #FCE8A6;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --border-color: rgba(212, 175, 55, 0.18);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-size: 14px;
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.bg-glow-1 {
    top: -100px;
    left: -100px;
    background: var(--accent-gold);
}

.bg-glow-2 {
    bottom: 0;
    right: -100px;
    background: #B8860B;
}

/* Utilities */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.text-gradient {
    background: linear-gradient(135deg, #FFE494, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #AA7C11 100%);
    color: #05070A;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0.95rem 0;
    background: rgba(15, 20, 28, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.logo-img {
    width: auto;
    min-width: 0;
    height: 48px;
    max-width: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.32));
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--accent-gold-light);
    letter-spacing: 0;
}

.logo-subtitle {
    margin-top: 0.18rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-gold);
}

.nav-links a.donate-nav-link {
    color: var(--accent-gold-light);
    padding: 0.28rem 0.52rem;
    border-radius: 7px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: none;
    font-size: 0.78rem;
}

.nav-links a.donate-nav-link:hover {
    color: var(--accent-gold-light);
    background: rgba(212, 175, 55, 0.14);
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.12);
}

/* Hero Section */
.hero {
    padding: 120px 0 50px;
    position: relative;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-brand-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.hero-logo-banner {
    max-width: 160px;
    width: 100%;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
    animation: float 4s ease-in-out infinite;
}

.hero-game-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.62rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(10px);
}

.hero-game-badge span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-eafc-logo {
    width: 120px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.16));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-version {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--accent-gold-light);
}

.title-match-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-shrink: 0;
    padding: 0.38rem 0.7rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.title-match-badge strong {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0;
}

.title-match-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: #00FF66;
    color: #06100A;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 900;
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.55);
}

.title-match-current {
    color: #00FF66;
    background: rgba(0, 255, 102, 0.1);
    border: 1px solid rgba(0, 255, 102, 0.35);
}

.title-match-old {
    color: #FFB347;
    background: rgba(255, 179, 71, 0.1);
    border: 1px solid rgba(255, 179, 71, 0.35);
}

.status-aligned {
    background: rgba(0, 255, 102, 0.08);
    border: 1px solid rgba(0, 255, 102, 0.25);
    color: #00FF66;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #00FF66;
    border-radius: 50%;
    box-shadow: 0 0 8px #00FF66;
    animation: pulse 1.5s infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 0.8rem;
}

.hero-description {
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 1.4rem;
    line-height: 1.5;
}

.hero-stats-strip {
    display: flex;
    gap: 1.8rem;
    padding: 0.8rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.4rem;
    width: 100%;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
}

/* Sections General */
.section {
    padding: 50px 0;
}

.section-dark {
    background: rgba(0, 0, 0, 0.15);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 0.72rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 0.3rem;
}

.compatibility-section {
    padding-top: 36px;
}

.compatibility-panel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.2rem;
    padding: 1.05rem 1.2rem;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 36%),
        rgba(24, 32, 44, 0.72);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.compatibility-eafc-logo {
    width: 180px;
    max-width: 42vw;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.14));
}

.compatibility-copy p {
    margin: 0.2rem 0 0;
    color: #C9D4E4;
    font-size: 0.86rem;
    line-height: 1.45;
}

.support-section {
    padding-top: 18px;
}

.support-panel {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.32);
    background:
        radial-gradient(circle at 10% 0%, rgba(212, 175, 55, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(24, 32, 44, 0.86));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 20px 38px rgba(0, 0, 0, 0.22);
}

.support-panel-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #05070A;
    background: linear-gradient(135deg, #FFE494, #D4AF37);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.28);
}

.support-panel-copy h2 {
    margin: 0.2rem 0 0.35rem;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.2;
}

.support-panel-copy p {
    margin: 0;
    max-width: 680px;
    color: #C9D4E4;
    font-size: 0.86rem;
    line-height: 1.5;
}

.mod-details-page {
    padding-top: 96px;
}

.install-page {
    padding-top: 96px;
}

.contact-page {
    padding-top: 96px;
}

.contact-hero {
    padding: 56px 0 4px;
}

.contact-layout {
    max-width: 960px;
}

.contact-form {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    background:
        radial-gradient(circle at 12% 0%, rgba(212, 175, 55, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(24, 32, 44, 0.94), rgba(14, 19, 27, 0.92));
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.22);
}

.contact-form-section {
    padding-top: 18px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.9rem;
}

.contact-form label span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--accent-gold-light);
    font-size: 0.78rem;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    padding: 0.72rem 0.78rem;
    font: inherit;
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 170px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(212, 175, 55, 0.58);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
}

.contact-submit {
    width: 100%;
}

.contact-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
}

.contact-alert-success {
    color: #00FF66;
    border: 1px solid rgba(0, 255, 102, 0.28);
    background: rgba(0, 255, 102, 0.08);
}

.contact-alert-error {
    color: #FF7777;
    border: 1px solid rgba(255, 85, 85, 0.28);
    background: rgba(255, 85, 85, 0.08);
}

.contact-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.install-hero {
    padding: 56px 0 20px;
}

.install-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 2rem;
}

.install-game-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.install-game-mark img {
    width: 210px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.15));
}

.install-layout {
    max-width: 960px;
}

.install-warning h2 i,
.install-settings h2 i,
.install-checklist h2 i {
    color: var(--accent-gold);
    margin-right: 0.45rem;
}

.install-steps {
    display: grid;
    gap: 0.8rem;
    margin: 1rem 0;
}

.install-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    background: rgba(255, 255, 255, 0.035);
}

.install-step-number {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 900;
}

.install-step h3 {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 0.96rem;
}

.install-step p {
    margin: 0;
    color: #C9D4E4;
    font-size: 0.86rem;
    line-height: 1.5;
}

.install-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.install-settings-grid div {
    padding: 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 102, 0.16);
    background: rgba(0, 255, 102, 0.045);
}

.install-settings-grid strong,
.install-settings-grid span {
    display: block;
}

.install-settings-grid strong {
    color: #00FF66;
    margin-bottom: 0.24rem;
}

.install-settings-grid span {
    color: #C9D4E4;
    font-size: 0.84rem;
}

.install-settings-note {
    margin: 1rem 0 0;
    padding: 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(212, 175, 55, 0.055);
    color: #C9D4E4;
    font-size: 0.84rem;
    line-height: 1.5;
}

.install-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.install-checklist li {
    display: flex;
    gap: 0.55rem;
    color: #C9D4E4;
    font-size: 0.86rem;
    line-height: 1.45;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.install-checklist li:last-child {
    border-bottom: 0;
}

.install-checklist li i {
    color: #00FF66;
    margin-top: 0.18rem;
}

.mod-details-hero {
    padding: 56px 0 20px;
}

.mod-details-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 2rem;
}

.mod-details-game-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background:
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12), transparent 42%),
        rgba(255, 255, 255, 0.035);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.mod-details-game-mark span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mod-details-game-mark img {
    width: 210px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.15));
}

.mod-details-layout {
    max-width: 960px;
}

.mod-detail-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 42%),
        linear-gradient(180deg, rgba(24, 32, 44, 0.94), rgba(14, 19, 27, 0.92));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 18px 34px rgba(0, 0, 0, 0.22);
}

.mod-detail-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 18% 0%, rgba(212, 175, 55, 0.12), transparent 32%);
    opacity: 0.72;
}

.mod-detail-panel > * {
    position: relative;
    z-index: 1;
}

.mod-detail-intro,
.mod-detail-wide {
    margin-bottom: 1rem;
}

.mod-detail-panel h2,
.mod-detail-panel h3 {
    margin: 0 0 0.7rem;
}

.mod-detail-panel h2 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.22rem;
    line-height: 1.2;
}

.mod-detail-panel h3 {
    color: #fff;
    font-size: 0.94rem;
    line-height: 1.25;
}

.mod-detail-panel p {
    color: #C9D4E4;
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 0.55rem;
}

.mod-detail-panel p:last-child {
    margin-bottom: 0;
}

.mod-detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent-gold);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.mod-detail-showcase {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.2rem;
    padding: 1.35rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.07), transparent 34%),
        linear-gradient(180deg, rgba(24, 32, 44, 0.88), rgba(12, 17, 25, 0.92));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 20px 38px rgba(0, 0, 0, 0.2);
}

.mod-detail-showcase::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.35rem;
    right: 1.35rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(252, 232, 166, 0.52), transparent);
}

.mod-detail-showcase-head {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mod-detail-showcase-head h2 {
    max-width: 620px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.24rem;
    line-height: 1.22;
    color: #fff;
}

.mod-detail-lines {
    position: relative;
    z-index: 1;
}

.mod-detail-line {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.95rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mod-detail-line:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.mod-line-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--accent-gold-light);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.08);
}

.mod-detail-line h3 {
    margin: 0 0 0.32rem;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.2;
}

.mod-detail-line p {
    max-width: 760px;
    margin: 0;
    color: #C9D4E4;
    font-size: 0.86rem;
    line-height: 1.5;
}

.mod-detail-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.mod-detail-points span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.65rem;
    border-radius: 8px;
    color: #A7F8C1;
    background: rgba(0, 255, 102, 0.06);
    border: 1px solid rgba(0, 255, 102, 0.16);
    font-size: 0.78rem;
    font-weight: 700;
}

/* ACCORDION STYLES (CLEAN & PROPER CONTAINMENT) */
.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: rgba(255, 255, 255, 0.02);
}

.accordion-header:hover {
    background: rgba(212, 175, 55, 0.05);
}

.version-tag {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.v-number {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.badge-latest {
    background: #00FF66;
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Latest Version Showcase Box (Version à Part & Mise en Évidence) */
.section-highlighted-version {
    padding: 20px 0 40px;
}

.latest-version-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(24, 32, 44, 0.95));
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.18);
    position: relative;
    overflow: hidden;
}

#latest-version {
    scroll-margin-top: 105px;
}

.latest-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
}

.latest-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.latest-meta-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
}

.latest-release-date {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.18rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.latest-release-date i {
    color: var(--accent-gold);
}

.latest-badge-strip {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.crown-badge {
    background: linear-gradient(135deg, #FFDF00, #D4AF37);
    color: #000;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.latest-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin: 0;
}

.v-date-hero {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 400;
}

.accordion-action {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
}

.latest-changes-subtitle {
    font-size: 0.95rem;
    color: var(--accent-gold-light);
    margin-bottom: 1rem;
}

.latest-change-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.latest-change-list li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 0.65rem;
    padding: 0.78rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    background: rgba(255, 255, 255, 0.035);
}

.latest-change-list i {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #05070A;
    background: var(--accent-gold);
    font-size: 0.72rem;
}

.latest-change-list strong,
.latest-change-list span {
    display: block;
}

.latest-change-list strong {
    color: #fff;
    font-size: 0.86rem;
    margin-bottom: 0.18rem;
}

.latest-change-list span {
    color: #C9D4E4;
    font-size: 0.8rem;
    line-height: 1.45;
}

.latest-empty-note {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin: 0 0 1.5rem;
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.8rem 1.5rem;
    margin-bottom: 1.5rem !important;
}

.latest-cta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.lang-btn #current-flag {
    font-size: 1rem;
}

.v-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Language Selector Styles */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.flag-icon {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
}

.lang-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

.lang-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.3rem 0;
    min-width: 120px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 200;
}

.lang-dropdown.active {
    display: block;
}

.lang-opt {
    display: block;
    padding: 0.4rem 0.8rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.lang-opt:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold-light);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 1.2rem 1.4rem;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-item.active .accordion-content {
    display: block;
}

.change-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.change-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--text-main);
    font-size: 0.85rem;
}

.change-list li:last-child {
    margin-bottom: 0;
}

.change-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.support-note {
    max-width: 640px;
    margin-top: 0.35rem;
    color: #C9D4E4;
    font-size: 0.78rem;
    line-height: 1.45;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 0;
    padding: 0.34rem 0.56rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.footer-links a:hover {
    color: var(--accent-gold-light);
    background: rgba(212, 175, 55, 0.07);
    border-color: rgba(212, 175, 55, 0.16);
}

.footer-links .footer-link-primary {
    color: var(--accent-gold-light);
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.22);
}


/* Responsive */
@media (max-width: 768px) {
    .nav-container { gap: 1rem; }
    .logo-img { height: 42px; max-width: 64px; }
    .logo-title { font-size: 0.9rem; }
    .logo-subtitle { font-size: 0.58rem; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { align-items: center; }
    .hero-title { font-size: 2rem; }
    .hero-logo-banner { max-width: 130px; }
    .hero-game-badge {
        flex-direction: column;
        gap: 0.45rem;
    }
    .hero-eafc-logo {
        width: 104px;
    }
    .latest-heading-row,
    .accordion-header,
    .accordion-action {
        align-items: flex-start;
    }
    .latest-heading-row {
        flex-direction: column;
    }
    .latest-meta-stack {
        align-items: flex-start;
    }
    .latest-release-date {
        white-space: normal;
    }
    .accordion-header {
        gap: 0.8rem;
    }
    .accordion-action {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .title-match-badge {
        white-space: normal;
        text-align: center;
    }
    .compatibility-panel {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .support-panel {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .compatibility-eafc-logo {
        max-width: 180px;
        width: 70%;
    }
    .latest-cta {
        justify-content: stretch;
        align-items: stretch;
        flex-direction: column;
    }
    .mod-details-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .install-hero-grid,
    .contact-layout,
    .contact-form-grid,
    .install-settings-grid {
        grid-template-columns: 1fr;
    }
    .install-hero-grid {
        text-align: center;
    }
    .install-game-mark {
        max-width: 260px;
        margin: 0 auto;
    }
    .mod-details-game-mark {
        max-width: 260px;
        margin: 0 auto;
    }
    .mod-details-hero { padding-top: 34px; }
    .hero-stats-strip { justify-content: center; gap: 1.2rem; }
    .footer-container { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .footer-links a { margin: 0; }
}

/* ========================================================================== 
   Mod detail analysis page - premium technical layout
   ========================================================================== */
.mod-details-pro {
    padding-top: 92px;
}

.mod-analysis-hero {
    position: relative;
    padding: 70px 0 42px;
    overflow: hidden;
}

.mod-analysis-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(212, 175, 55, 0.11), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 48%);
    pointer-events: none;
}

.mod-analysis-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 3rem;
}

.mod-analysis-copy .hero-title {
    max-width: 760px;
    margin-top: 0.55rem;
    font-size: 2.65rem;
}

.mod-analysis-copy .hero-description {
    max-width: 720px;
    font-size: 0.98rem;
    color: #D4DEEA;
}

.analysis-scoreboard {
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.32);
    background:
        linear-gradient(145deg, rgba(252, 232, 166, 0.08), rgba(24, 32, 44, 0.88)),
        rgba(15, 20, 28, 0.9);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.analysis-game-logo {
    display: block;
    width: 205px;
    max-width: 100%;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
}

.analysis-score-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.analysis-score-grid div,
.analysis-pillar,
.breakdown-card,
.comparison-card,
.match-feel-grid div {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
}

.analysis-score-grid div {
    padding: 0.86rem;
}

.analysis-score-grid strong,
.analysis-score-grid span {
    display: block;
}

.analysis-score-grid strong {
    font-family: var(--font-heading);
    color: var(--accent-gold-light);
    font-size: 1.2rem;
    line-height: 1.1;
}

.analysis-score-grid span {
    margin-top: 0.25rem;
    color: #B7C4D5;
    font-size: 0.74rem;
    font-weight: 700;
}

.analysis-container {
    max-width: 1120px;
}

.analysis-section-head {
    max-width: 820px;
    margin-bottom: 1.45rem;
}

.analysis-section-head.compact {
    margin-bottom: 1rem;
}

.analysis-section-head h2,
.match-feel-panel h2 {
    margin: 0.3rem 0 0.65rem;
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.55rem;
    line-height: 1.2;
}

.analysis-section-head p {
    color: #C9D4E4;
    font-size: 0.93rem;
    line-height: 1.65;
}

.analysis-overview-section,
.analysis-breakdown-section,
.analysis-comparison-section,
.match-feel-section {
    padding-top: 34px;
    padding-bottom: 34px;
}

.analysis-pillars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.analysis-pillar {
    padding: 1rem;
    min-height: 190px;
    background:
        linear-gradient(180deg, rgba(24, 32, 44, 0.9), rgba(13, 18, 26, 0.88));
}

.analysis-pillar > span,
.comparison-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #05070A;
    background: linear-gradient(135deg, #FFE494, #D4AF37);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.2);
}

.analysis-pillar h3,
.comparison-card h3 {
    margin: 0.85rem 0 0.42rem;
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.25;
}

.analysis-pillar p,
.breakdown-card p,
.comparison-card p,
.match-feel-grid span {
    color: #C6D2E2;
    font-size: 0.84rem;
    line-height: 1.55;
}

.analysis-breakdown {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.breakdown-card {
    padding: 1rem;
    background: rgba(24, 32, 44, 0.76);
}

.breakdown-card.major {
    border-color: rgba(212, 175, 55, 0.35);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1), rgba(24, 32, 44, 0.8));
}

.breakdown-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.65rem;
}

.breakdown-top span {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 800;
}

.breakdown-top strong {
    color: var(--accent-gold-light);
    font-size: 0.78rem;
    white-space: nowrap;
}

.breakdown-bar {
    height: 7px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.breakdown-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #FFE494, #D4AF37);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.comparison-card {
    padding: 1.15rem;
    background:
        linear-gradient(180deg, rgba(24, 32, 44, 0.92), rgba(12, 17, 25, 0.92));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.comparison-card dl {
    display: grid;
    gap: 0.48rem;
    margin-top: 0.9rem;
}

.comparison-card dl div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
}

.comparison-card dt {
    color: #AEBBCD;
    font-size: 0.76rem;
    font-weight: 700;
}

.comparison-card dd {
    margin: 0;
    color: var(--accent-gold-light);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.match-feel-panel {
    padding: 1.35rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(24, 32, 44, 0.9), rgba(12, 17, 25, 0.9));
}

.match-feel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.match-feel-grid div {
    padding: 0.9rem;
}

.match-feel-grid strong,
.match-feel-grid span {
    display: block;
}

.match-feel-grid strong {
    margin-bottom: 0.25rem;
    color: #fff;
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .mod-analysis-hero-grid,
    .analysis-pillars,
    .analysis-breakdown,
    .match-feel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .mod-analysis-hero {
        padding-top: 42px;
    }

    .mod-analysis-hero-grid,
    .analysis-pillars,
    .analysis-breakdown,
    .comparison-grid,
    .match-feel-grid {
        grid-template-columns: 1fr;
    }

    .mod-analysis-copy,
    .analysis-section-head {
        text-align: left;
    }

    .mod-analysis-copy .hero-title {
        font-size: 2rem;
    }

    .analysis-scoreboard {
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
    }

    .comparison-card dl div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .comparison-card dd {
        white-space: normal;
    }
}

/* ========================================================================== 
   Smooth modern site transitions and airy mod story page
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    body {
        opacity: 0;
        transform: translateY(34px);
        transition: opacity 260ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    body::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 9999;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(15, 20, 28, 0.76), #0F141C 72%);
        transform: translateY(100%);
        transition: transform 280ms cubic-bezier(0.76, 0, 0.24, 1);
    }

    body.page-ready {
        opacity: 1;
        transform: translateY(0);
    }

    body.page-leaving {
        opacity: 0;
        transform: translateY(-28px);
    }

    body.page-leaving::after {
        transform: translateY(0);
    }

    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 760ms ease, transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

.mod-story-page {
    padding-top: 92px;
}

.mod-story-page .container {
    max-width: 1080px;
}

.mod-story-hero {
    position: relative;
    padding: 86px 0 74px;
    overflow: hidden;
}

.mod-story-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(212, 175, 55, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 58%);
    pointer-events: none;
}

.mod-story-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
    gap: 4rem;
}

.mod-story-copy .hero-title {
    max-width: 760px;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: 2.9rem;
    line-height: 1.08;
}

.mod-story-copy .hero-description {
    max-width: 650px;
    color: #D2DEEC;
    font-size: 1rem;
    line-height: 1.7;
}

.mod-story-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 230px;
}

.mod-story-mark img {
    width: 230px;
    max-width: 100%;
    filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.15));
}

.mod-story-mark span {
    margin-top: 1rem;
    color: var(--accent-gold-light);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mod-story-section {
    padding: 58px 0;
}

.mod-story-narrow {
    max-width: 780px !important;
}

.mod-story-narrow h2,
.mod-story-split h2,
.final-story h2 {
    margin: 0.35rem 0 1rem;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    line-height: 1.18;
}

.mod-story-narrow p,
.story-rich-text p,
.story-line p {
    color: #C9D4E4;
    font-size: 0.98rem;
    line-height: 1.85;
}

.mod-story-narrow p + p,
.story-rich-text p + p {
    margin-top: 1.05rem;
}

.mod-story-split {
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    gap: 4rem;
    align-items: start;
}

.gameplay-signature-story {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(212, 175, 55, 0.035));
}

.story-rich-text {
    position: relative;
    padding-left: 1.35rem;
}

.story-rich-text::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(252, 232, 166, 0.7), rgba(212, 175, 55, 0.08));
}

.mod-story-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 4rem;
}

.story-line {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 0 0 1.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.story-line i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold-light);
    font-size: 1rem;
}

.story-line h3 {
    margin: 0 0 0.38rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.25;
}

.final-story {
    text-align: center;
}

.final-story p {
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
}

@media (max-width: 900px) {
    .mod-story-hero-grid,
    .mod-story-split,
    .mod-story-flow {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mod-story-mark {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .mod-story-hero {
        padding: 46px 0 42px;
    }

    .mod-story-copy .hero-title {
        font-size: 2.08rem;
    }

    .mod-story-section {
        padding: 40px 0;
    }

    .mod-story-narrow h2,
    .mod-story-split h2,
    .final-story h2 {
        font-size: 1.4rem;
    }

    .story-rich-text {
        padding-left: 1rem;
    }

    .final-story {
        text-align: left;
    }
}

.mod-story-flow-complete {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 2.8rem;
}

@media (max-width: 980px) {
    .mod-story-flow-complete {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .mod-story-flow-complete {
        grid-template-columns: 1fr;
    }
}
/* Transition fix: keep header visible and avoid body-level scrollbar artifacts */
@media (prefers-reduced-motion: no-preference) {
    body {
        opacity: 1;
        transform: none;
        transition: none;
    }

    body::after {
        z-index: 80;
        top: 76px;
        background: linear-gradient(180deg, rgba(15, 20, 28, 0.58), #0F141C 76%);
    }

    body.page-ready,
    body.page-leaving {
        opacity: 1;
        transform: none;
    }

    main,
    .footer {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 240ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
        will-change: opacity, transform;
    }

    body.page-ready main,
    body.page-ready .footer {
        opacity: 1;
        transform: translateY(0);
    }

    body.page-leaving main,
    body.page-leaving .footer {
        opacity: 0;
        transform: translateY(-24px);
    }

    body.page-leaving::after {
        transform: translateY(0);
    }
}

/* Transition stability fix: overlay only, no document movement */
@media (prefers-reduced-motion: no-preference) {
    html,
    body {
        overflow-x: hidden;
    }

    body,
    body.page-ready,
    body.page-leaving,
    main,
    .footer,
    body.page-ready main,
    body.page-ready .footer,
    body.page-leaving main,
    body.page-leaving .footer {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }

    body::after {
        content: "";
        position: fixed;
        left: 0;
        right: 0;
        top: 76px;
        bottom: 0;
        z-index: 80;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(15, 20, 28, 0.52), #0F141C 76%);
        transform: translate3d(0, 100%, 0);
        transition: transform 240ms cubic-bezier(0.76, 0, 0.24, 1);
    }

    body.page-leaving::after {
        transform: translate3d(0, 0, 0);
    }
}

.compatibility-panel-simple {
    grid-template-columns: auto minmax(0, 1fr);
}

@media (max-width: 768px) {
    .compatibility-panel-simple {
        grid-template-columns: 1fr;
    }
}
