/* Inner pages: keep the Mystic Forest landing chrome, restyle forms/cards to match. */

:root {
    --bg-dark: #020308;
    --bg-panel: rgba(8, 11, 20, 0.88);
    --bg-card: rgba(10, 14, 26, 0.92);
    --bg-card-hover: rgba(16, 20, 36, 0.96);
    --border: rgba(165, 148, 255, 0.22);
    --text: #f2f5fc;
    --text-muted: #9aa8c2;
    --gold: #a594ff;
    --gold-light: #c8beff;
    --accent: #5ee4c8;
    --font-display: Cinzel, "Libre Baskerville", Georgia, serif;
    --font-body: Inter, "Source Sans 3", system-ui, sans-serif;
}

body.mystic-forest.page-inner {
    padding-top: var(--mw-nav, 72px);
    background: #020308;
}

body.mystic-forest.page-inner::before {
    display: none;
}

body.mystic-forest.page-inner .bg-overlay,
body.mystic-forest.page-inner .particles,
body.mystic-forest.page-inner .site-header,
body.mystic-forest.page-inner .site-footer {
    display: none !important;
}

body.mystic-forest.page-inner main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 280px);
}

.mw-flash {
    position: relative;
    z-index: 2;
    margin: 0.75rem auto 0;
    width: min(720px, calc(100% - 2rem));
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(165, 148, 255, 0.28);
    background: rgba(8, 11, 20, 0.88);
    color: #f2f5fc;
    text-align: center;
}

.mw-flash-success { border-color: rgba(94, 228, 200, 0.4); color: #5ee4c8; }
.mw-flash-error { border-color: rgba(196, 90, 74, 0.45); color: #f0b4ac; }

.mw-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.72;
}

.mw-footer__legal a { text-decoration: none; }
.mw-footer__legal a:hover { color: #f2f5fc; }

.lang-switcher { position: relative; }
.lang-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    inset-inline-end: 0;
    min-width: 168px;
    padding: 0.35rem;
    border-radius: 12px;
    display: none;
    z-index: 220;
}
.lang-switcher.open .lang-menu {
    display: grid;
    gap: 0.15rem;
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    color: #9aa8c2;
    text-decoration: none;
    font-size: 0.88rem;
}
.lang-option:hover,
.lang-option.is-active {
    background: rgba(165, 148, 255, 0.12);
    color: #f2f5fc;
}

.mw-lang { position: relative; }
.mw-lang .lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: #9aa8c2;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.mw-lang .lang-menu {
    right: 0;
    background: rgba(8, 11, 20, 0.96);
    border: 1px solid rgba(165, 148, 255, 0.22);
}

.auth-section,
.download-section,
.ranking-section,
.section {
    padding: 3.5rem 0 5rem;
}

.auth-card,
.download-card,
.ranking-sidebar,
.ranking-table-wrap,
.account-shell,
.card {
    background: rgba(10, 14, 26, 0.92) !important;
    border: 1px solid rgba(165, 148, 255, 0.18) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    color: #f2f5fc;
}

.auth-card h1,
.download-card h1,
.ranking-header h1,
.account-shell h1 {
    font-family: Cinzel, Georgia, serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-form input,
.account-shell input,
.auth-form select {
    background: rgba(4, 6, 12, 0.8);
    color: #f2f5fc;
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-primary,
.btn.btn-primary {
    background: linear-gradient(160deg, rgba(70, 90, 180, 0.85) 0%, rgba(15, 20, 45, 0.95) 55%, rgba(6, 8, 16, 1) 100%);
    border: 1px solid rgba(165, 148, 255, 0.4);
    color: #f2f5fc;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 24px rgba(165, 148, 255, 0.18);
}

.btn-secondary,
.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #9aa8c2;
}

.flash {
    position: relative;
    z-index: 2;
    margin-top: 0.75rem;
}

.download-banner {
    background-image: url('../../images/coa-backgrounds/thumbs/1920w/Mystic_Forest_Adventure.jpg') !important;
    background-size: cover;
    background-position: center;
}

.mw-nav__links > a.is-active,
.mw-drop.is-active .mw-drop__btn {
    color: #f2f5fc;
}

@media (max-width: 1100px) {
    .mw-nav__links { display: none !important; }
    .mw-nav__burger { display: flex !important; }
    .mw-nav__actions { display: none !important; }
}

html[dir="rtl"] .mw-nav,
html[dir="rtl"] .mw-footer nav,
html[dir="rtl"] .mw-hero__actions,
html[dir="rtl"] .mw-bridge__steps,
html[dir="rtl"] .mw-class-strip {
    direction: rtl;
}

html[dir="rtl"] .mw-step__arrow {
    transform: scaleX(-1);
}

.legal-card {
    background: rgba(10, 14, 26, 0.92);
    border: 1px solid rgba(165, 148, 255, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.legal-block h2 {
    color: #c8beff;
}
