:root {
    --bs-font-sans-serif: 'Oxanium', sans-serif;
    --ov-font-display: 'Oxanium', sans-serif;
    --ov-font-title: 'Cinzel', serif;
    --ov-bg: #0f0c18;
    --ov-surface: #19142a;
    --ov-surface-2: #231c38;
    --ov-surface-3: #2e2548;
    --ov-text: #f0ecfa;
    --ov-muted: #c2b8d8;
    --ov-border: #6b5c8a;
    --ov-gold: #e0b84f;
    --ov-gold-soft: #fff4a3;
    --ov-sand: #d6c2a2;
    --ov-purple: #7c3aed;
    --ov-purple-soft: #e9d5ff;
    --ov-violet: #a855f7;
    --ov-shadow: 0 18px 48px rgba(4, 2, 12, 0.52);
}

[data-bs-theme=dark] {
    --bs-body-bg: var(--ov-bg);
    --bs-body-color: var(--ov-text);
    --bs-border-color: rgba(139, 92, 246, 0.14);
    --bs-primary: var(--ov-accent, var(--ov-violet));
    --bs-primary-rgb: 168, 85, 247;
    --bs-link-color: var(--ov-link, #e9d5ff);
    --bs-link-hover-color: #ffffff;
    --bs-primary-color-contrast: #fff;
}

html,
body {
    min-height: 100%;
}

body {
    background:
        radial-gradient(ellipse at 60% 0%, rgba(124, 58, 237, 0.22), transparent 38%),
        radial-gradient(ellipse at 15% 0%, rgba(224, 184, 79, 0.1), transparent 28%),
        radial-gradient(ellipse at 85% 55%, rgba(80, 20, 180, 0.08), transparent 30%),
        linear-gradient(180deg, #110e1e 0%, #0f0c18 100%);
    color: var(--ov-text);
    font-family: var(--ov-font-display);
}

a {
    text-decoration: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn,
.nav-link,
.hero-topline-label,
.page-banner-label,
.footer-label,
.footer-heading {
    font-family: var(--ov-font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Flex wrapper: makes footer always stick to the bottom ── */
.site-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-shell {
    position: relative;
}

.page-hero {
    position: relative;
    min-height: 420px;
    background-position: center;
    background-size: cover;
    border-bottom: 4px solid rgba(0, 0, 0, 0.35);
}

.page-hero::before {
    display: none;
    content: none;
}

/* ── Magical home hero background ── */
.home-page-hero {
    min-height: calc(100vh - 72px); /* leaves room for the site-footer */
    border-bottom: none;
    /* Starfield + magical atmosphere — pure CSS, no SVG */
    background:
        /* Fine star particles — top zone */
        radial-gradient(circle 1px at  7% 11%, rgba(255, 240, 170, 0.60), transparent 2px),
        radial-gradient(circle 1px at 14%  5%, rgba(200, 150, 255, 0.50), transparent 2px),
        radial-gradient(circle 1px at 22% 19%, rgba(255, 255, 255, 0.46), transparent 2px),
        radial-gradient(circle 1px at 30%  4%, rgba(255, 235, 130, 0.54), transparent 2px),
        radial-gradient(circle 1px at 38% 14%, rgba(210, 140, 255, 0.44), transparent 2px),
        radial-gradient(circle 1px at 47% 23%, rgba(255, 255, 255, 0.38), transparent 2px),
        radial-gradient(circle 1px at 55%  6%, rgba(255, 218,  90, 0.52), transparent 2px),
        radial-gradient(circle 1px at 63% 17%, rgba(198, 168, 255, 0.44), transparent 2px),
        radial-gradient(circle 1px at 72%  2%, rgba(255, 255, 255, 0.56), transparent 2px),
        radial-gradient(circle 1px at 80% 20%, rgba(218, 178, 255, 0.44), transparent 2px),
        radial-gradient(circle 1px at 88%  8%, rgba(255, 238, 172, 0.52), transparent 2px),
        radial-gradient(circle 1px at 94% 15%, rgba(200, 152, 255, 0.46), transparent 2px),
        radial-gradient(circle 1px at 11% 27%, rgba(255, 255, 255, 0.34), transparent 2px),
        radial-gradient(circle 1px at 50%  2%, rgba(255, 242, 162, 0.42), transparent 2px),
        radial-gradient(circle 1px at 68%  9%, rgba(255, 255, 255, 0.36), transparent 2px),
        /* Extra stars scattered across middle zone */
        radial-gradient(circle 1px at  3% 55%, rgba(255, 248, 200, 0.38), transparent 2px),
        radial-gradient(circle 1px at 17% 42%, rgba(230, 200, 255, 0.32), transparent 2px),
        radial-gradient(circle 1px at 33% 36%, rgba(255, 255, 255, 0.28), transparent 2px),
        radial-gradient(circle 1px at 44% 62%, rgba(255, 230, 120, 0.34), transparent 2px),
        radial-gradient(circle 1px at 57% 48%, rgba(200, 160, 255, 0.30), transparent 2px),
        radial-gradient(circle 1px at 73% 57%, rgba(255, 248, 200, 0.32), transparent 2px),
        radial-gradient(circle 1px at 87% 38%, rgba(255, 255, 255, 0.30), transparent 2px),
        radial-gradient(circle 1px at 96% 65%, rgba(220, 180, 255, 0.28), transparent 2px),
        /* Dim mid-field stars */
        radial-gradient(circle 2px at  4% 38%, rgba(185, 135, 255, 0.22), transparent 3px),
        radial-gradient(circle 2px at 26% 50%, rgba(255, 202,  72, 0.18), transparent 3px),
        radial-gradient(circle 2px at 62% 34%, rgba(185, 135, 255, 0.22), transparent 3px),
        radial-gradient(circle 2px at 84% 47%, rgba(255, 202,  92, 0.18), transparent 3px),
        radial-gradient(circle 2px at 42% 72%, rgba(200, 150, 255, 0.16), transparent 3px),
        radial-gradient(circle 2px at 78% 68%, rgba(255, 215,  80, 0.14), transparent 3px),
        /* Large magical energy source — from below (softer, less purple) */
        radial-gradient(ellipse 72% 48% at 50% 115%, rgba(50, 14, 145, 0.36), transparent),
        /* Side ambient lights */
        radial-gradient(ellipse 42% 62% at   0% 65%, rgba(175, 125, 35, 0.10), transparent),
        radial-gradient(ellipse 38% 52% at 100% 45%, rgba(88,  36, 198, 0.08), transparent),
        /* Base: deep magical space */
        linear-gradient(175deg, #040010 0%, #07021e 35%, #08031a 65%, #040010 100%);
}

/* Subtle gold shimmer at the bottom of the hero */
.home-page-hero::before {
    display: block;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28%;
    background: linear-gradient(to top, rgba(196, 155, 56, 0.06), transparent);
    pointer-events: none;
    z-index: 0;
}

.page-hero-plain {
    min-height: auto;
    border-bottom: 0;
    background: transparent;
}

.page-hero.page-hero-plain::before,
.page-hero-plain::before {
    display: none !important;
    content: none;
}

.theme-navbar {
    position: relative;
    z-index: 10;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(18, 16, 21, 0.94), rgba(12, 11, 15, 0.96));
}

.theme-navbar-inner {
    position: relative;
    min-height: 76px;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
}

.theme-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: #fff;
    padding: 0.85rem 0;
}

.theme-brand-logo {
    width: auto;
    height: 46px;
    max-width: 180px;
    object-fit: contain;
}

.theme-brand-text {
    font-size: 1rem;
    font-weight: 800;
}

.theme-navbar-left {
    flex: 0 0 33.3333%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.theme-navbar .nav-link,
.theme-user-link {
    display: inline-flex;
    align-items: center;
    min-height: 76px;
    padding: 0 1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.92rem;
    font-weight: 700;
}

.theme-navbar-collapse {
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 992px) {
    .theme-navbar-collapse {
        display: flex !important;
    }
}

.theme-navbar-center {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.theme-navbar-menu {
    align-items: stretch;
    justify-content: center;
    margin: 0 auto;
}

.theme-navbar .nav-link.active,
.theme-navbar .nav-link:hover,
.theme-navbar .dropdown-toggle.show {
    color: var(--ov-accent, var(--ov-gold-soft)) !important;
}

.theme-navbar .nav-link.active {
    box-shadow: inset 0 -3px 0 var(--ov-accent, var(--ov-gold));
}

.theme-navbar .dropdown-menu {
    border-radius: 0;
    border: 1px solid rgba(233, 213, 255, 0.15);
    background: rgba(28, 24, 34, 0.97);
    box-shadow: var(--ov-shadow);
}

.theme-navbar .dropdown-item {
    color: var(--ov-muted);
}

.theme-navbar .dropdown-item:hover,
.theme-navbar .dropdown-item.active {
    color: #fff;
    background: rgba(124, 58, 237, 0.14);
}

.theme-navbar-actions {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.theme-navbar-right {
    flex: 0 0 50%;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.theme-nav-btn {
    min-width: 132px;
    min-height: 48px;
}

.theme-navbar-toggler {
    border-radius: 0;
    border-color: rgba(255, 255, 255, 0.18);
    margin-left: auto;
}

.theme-user-avatar {
    width: 28px;
    height: 28px;
    object-fit: cover;
    image-rendering: pixelated;
    border: 1px solid rgba(233, 213, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    margin-right: 0.45rem;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    padding-bottom: 1.1rem;
}

.page-hero-plain .page-hero-inner {
    padding-top: 2rem;
    padding-bottom: 1.1rem;
}

.home-hero-inner {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 96px);
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

/* ── Home hero rediseño ── */
.home-hero-wrap {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 96px);
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    width: 100%;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 380px);
    gap: 2.5rem;
    align-items: stretch;
    width: 100%;
}

.home-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.home-hero-right {
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

/* ── Home action buttons ── */
.home-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.home-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: 1.5px solid transparent;
    font-family: var(--ov-font-display);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.18s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.home-action-btn--gold {
    color: #1a1205;
    background: linear-gradient(180deg, #f5d675 0%, #e0b84f 60%, #c49438 100%);
    border-color: #f5d675;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.28), inset 0 -3px 0 rgba(100,65,0,.35), 0 0 14px rgba(224,184,79,.18);
}
.home-action-btn--gold:hover:not(.copied) {
    filter: brightness(1.08);
}
.home-action-btn--gold.copied {
    color: #f5f0ff;
    background: linear-gradient(180deg, #a855f7 0%, #7c3aed 60%, #5b21b6 100%);
    border-color: #a855f7;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -3px 0 rgba(50,10,100,.45), 0 0 14px rgba(124,58,237,.35);
}

.home-action-btn--discord {
    color: #fff;
    background: linear-gradient(180deg, #7289da 0%, #5865f2 60%, #4752c4 100%);
    border-color: #7289da;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -3px 0 rgba(30,30,80,.40), 0 0 12px rgba(88,101,242,.18);
}
.home-action-btn--discord:hover {
    filter: brightness(1.08);
}

.hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
    gap: 2rem;
    align-items: center;
    width: 100%;
}

.hero-copy {
    max-width: 760px;
}

.hero-topline,
.page-banner-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}

.hero-topline-label,
.page-banner-label,
.footer-label {
    color: var(--ov-gold);
    font-size: 0.84rem;
    font-weight: 800;
}

.hero-title,
.page-banner-title {
    margin-bottom: 1rem;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.9;
    font-weight: 800;
    text-wrap: balance;
}

.hero-description {
    max-width: 60ch;
    margin-bottom: 1.75rem;
    color: var(--ov-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

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

.btn {
    padding: 0.5rem 1.1rem;
    border-radius: 0;
    border-width: 1px;
    font-size: 0.88rem;
    font-weight: 800;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.btn-primary {
    color: #120d04;
    background: linear-gradient(180deg, #ffe87a 0%, #e0b84f 60%, #c99830 100%);
    border-color: #f5dea0;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.28),
        inset 0 -4px 0 rgba(107, 81, 27, 0.48),
        0 0 12px rgba(224, 184, 79, 0.14);
}

.btn-outline-light,
.btn-secondary {
    color: rgba(235, 230, 245, 0.90);
    background: linear-gradient(180deg, rgba(40, 34, 55, 0.92) 0%, rgba(24, 18, 38, 0.96) 100%);
    border-color: rgba(160, 145, 195, 0.22);
    box-shadow: inset 0 -4px 0 rgba(8, 4, 18, 0.45);
}
.btn-discord {
    color: #ffffff;
    background: linear-gradient(180deg, #7b85ff 0%, #5865F2 100%);
    border: 1px solid #aab0ff;
    box-shadow: inset 0 -4px 0 rgba(40, 48, 150, 0.55);

    padding: 0.95rem 1.4rem;
    border-radius: 0;
    font-size: 0.93rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-discord:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.btn-discord i {
    font-size: 1.2rem;
}
.hero-cta {
    min-width: 144px;
}

.server-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.95rem;
    color: #fff;
    background: rgba(18, 16, 21, 0.48);
    border: 1px solid rgba(233, 213, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-family: var(--ov-font-display);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.server-chip-dot {
    width: 10px;
    height: 10px;
    background: #d05f6a;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.24);
}

.server-chip-dot.is-online {
    background: var(--ov-accent, var(--ov-gold));
}

/* ── Gold frame — applied globally to every card and modal ── */
.hero-card,
.card,
.modal-content {
    border-radius: 0 !important;
}

.alert {
    border-radius: 10px !important;
}

.btn {
    border-radius: 0 !important;
}

.hero-card,
.card,
.modal-content {
    background: linear-gradient(160deg, rgba(28, 18, 52, 0.94) 0%, rgba(16, 10, 32, 0.98) 100%);
    border: none;
    box-shadow:
        0 0 0 1px  rgba(196, 155, 56, 0.70),
        0 0 0 5px  rgba(6,   3,  14, 0.88),
        0 0 0 6px  rgba(140, 100, 30, 0.38),
        0 28px 64px rgba(4,  2,  12, 0.72),
        0 0  52px  rgba(196, 155, 56, 0.07);
    transition: box-shadow 0.25s ease;
}

.hero-card {
    padding: 1.4rem;
}

.hero-logo {
    width: 100%;
    max-height: 180px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.hero-card-block {
    padding: 1.1rem;
    background: rgba(13, 16, 11, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card-label {
    margin-bottom: 0.55rem;
    color: var(--ov-gold);
    font-family: var(--ov-font-display);
    font-size: 0.84rem;
    text-transform: uppercase;
}

.hero-card-text,
.footer-copy {
    margin-bottom: 0;
    color: var(--ov-muted);
    line-height: 1.7;
}

.page-hero-inner-compact {
    padding-top: 2.5rem;
    padding-bottom: 1.75rem;
}

.page-banner-title {
    max-width: 14ch;
    margin-bottom: 0.25rem;
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.page-hero-plain .page-banner-title {
    margin-bottom: 0;
}

.page-banner-title-centered {
    margin-inline: auto;
    text-align: center;
}

.page-main {
    padding: 1rem 0 2rem;
}

.home-alerts {
    position: relative;
    z-index: 2;
    margin-top: -5.5rem;
}

.content-shell > h1:first-child,
.content > h1:first-child {
    display: none;
}

.card {
    position: relative;
    overflow: hidden;
    color: var(--ov-text);
}

/* Gold top-bar on every card — same as news/changelog cards */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1;
    background: linear-gradient(
        90deg,
        #6b4e14  0%,
        #c49b38 28%,
        #ffe87a 50%,
        #c49b38 72%,
        #6b4e14 100%
    );
}

.card:hover,
.hero-card:hover,
.modal-content:hover {
    box-shadow:
        0 0 0 1px  rgba(224, 184, 79, 0.90),
        0 0 0 5px  rgba(6,   3,  14, 0.88),
        0 0 0 6px  rgba(196, 155, 56, 0.55),
        0 36px 76px rgba(4,  2,  12, 0.78),
        0 0  68px  rgba(224, 184, 79, 0.14);
}

/* Cards that link — cursor pointer */
a > .card,
a.card {
    cursor: pointer;
}

.card-header,
.card-footer {
    background: rgba(11, 14, 10, 0.24);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--ov-muted);
}

.card-title a {
    color: #fff;
}

.card-img-top {
    border-radius: 14px 14px 0 0 !important;
}

.img-fluid.rounded {
    border-radius: 10px !important;
}

.alert {
    color: var(--ov-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(63, 53, 79, 0.42);
}

.alert-danger,
.alert-warning {
    background: rgba(100, 58, 43, 0.45);
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 0;
    border-color: rgba(233, 213, 255, 0.12);
    background: rgba(17, 15, 20, 0.6);
    color: var(--ov-text);
}

.form-control:focus,
.form-select:focus {
    color: var(--ov-text);
    background: rgba(17, 15, 20, 0.88);
    border-color: var(--ov-purple);
    box-shadow: 0 0 0 0.18rem rgba(124, 58, 237, 0.16);
}

.page-link {
    border-radius: 0 !important;
    background: rgba(28, 24, 34, 0.95);
    border-color: rgba(233, 213, 255, 0.12);
    color: var(--ov-text);
}

.page-item.active .page-link,
.page-link:hover {
    color: #10140d;
    background: var(--ov-accent, var(--ov-gold));
    border-color: var(--ov-accent, var(--ov-gold));
}

.table {
    color: var(--ov-text);
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-bg: rgba(124, 58, 237, 0.08);
}

.table > :not(caption) > * > * {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.post-description {
    margin-bottom: 1.25rem;
    color: var(--ov-muted);
    font-size: 1.05rem;
    line-height: 1.72;
    max-width: 72ch;
}

/* Hide Azuriom's default footer if it leaks through */
footer:not(.site-footer) {
    display: none !important;
}

.site-footer {
    margin-top: auto; /* flex-push to bottom via .site-wrap */
    padding: 1.5rem 0 1.25rem;
    border-top: 1px solid rgba(196, 155, 56, 0.18);
    background: transparent;
}

.footer-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-desc {
    margin: 0;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--ov-muted);
    line-height: 1.65;
    max-width: 60ch;
}

.footer-links-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.5rem;
}

.footer-link {
    font-family: var(--ov-font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ov-gold);
    opacity: 0.75;
    transition: opacity 0.15s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--ov-gold);
}

/* ═══════════════════════════════════════════════════
   WIKI — NAV BAR (tabs + back, separated from content)
   ═══════════════════════════════════════════════════ */
.wiki-nav {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
    border-bottom: 1px solid rgba(196, 155, 56, 0.22);
    flex-wrap: wrap;
}

/* ─── Tab strip ─── */
.wiki-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
    flex: 1;
    min-width: 0;
}

.wiki-nav-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem 0.65rem;
    color: rgba(244, 241, 235, 0.62);
    font-family: var(--ov-font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    transition: color 0.18s ease;
    white-space: nowrap;
}

/* Gold underline: invisible by default, slides in on hover/active */
.wiki-nav-tab::after {
    content: '';
    position: absolute;
    bottom: -1px; /* sits on top of the border-bottom of .wiki-nav */
    left: 0.6rem;
    right: 0.6rem;
    height: 2px;
    background: var(--ov-accent, var(--ov-gold));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.18s ease;
}

.wiki-nav-tab:hover {
    color: rgba(244, 241, 235, 0.9);
    text-decoration: none;
}

.wiki-nav-tab:hover::after {
    transform: scaleX(1);
}

.wiki-nav-tab.active {
    color: #fff;
}

.wiki-nav-tab.active::after {
    transform: scaleX(1);
    background: var(--ov-accent, var(--ov-gold));
}

/* ─── Actions (back + subcategories) ─── */
.wiki-nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 0.65rem;
    flex-shrink: 0;
}

/* ─── Back button and subcategory links ─── */
.wiki-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(244, 241, 235, 0.55);
    font-family: var(--ov-font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.18s ease;
    white-space: nowrap;
}

.wiki-back-btn:hover {
    color: var(--ov-gold);
    text-decoration: none;
}

/* ─── Content area (tabs target) ─── */
#wiki.tab-content {
    width: 100%;
}

/* ─── Category index cards ─── */
.wiki-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(196, 155, 56, 0.14);
    border-radius: 8px;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.wiki-category-card:hover {
    background: rgba(196, 155, 56, 0.07);
    border-color: rgba(196, 155, 56, 0.32);
}

.wiki-category-icon {
    background: linear-gradient(135deg, var(--ov-gold) 0%, var(--ov-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.wiki-category-title {
    font-size: 0.88rem;
    line-height: 1.25;
    letter-spacing: 0.03em;
    word-break: break-word;
    color: var(--ov-text);
}

/* ─── Content card body ─── */
.wiki-body {
    padding: 1.75rem 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wiki-category-image,
.wiki-tab-image,
.wiki-badge-image,
.wiki-icon-preview-image {
    object-fit: cover;
}

.wiki-category-image {
    width: 88px;
    height: 88px;
    margin-inline: auto;
    image-rendering: auto;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.24));
}

.wiki-category-title {
    font-size: 0.88rem;
    line-height: 1.2;
    letter-spacing: 0.03em;
    word-break: break-word;
}

.wiki-hero-bar .page-banner-title {
    max-width: none;
    width: 100%;
    text-align: center;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1;
}

/* ═══════════════════════════════════════════════════
   WIKI — CONTENT TYPOGRAPHY & TABLES
   Applies to all content rendered inside wiki pages.
   Uses descendant selectors (no >) to catch editor-
   generated markup at any nesting depth.
   ═══════════════════════════════════════════════════ */

/* ─── Typography ─── */
.wiki-body {
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--ov-text);
}

.wiki-body h1,
.wiki-body h2,
.wiki-body h3,
.wiki-body h4,
.wiki-body h5,
.wiki-body h6 {
    font-family: var(--ov-font-display);
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--ov-text);
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.wiki-body h1 { font-size: 1.55rem; }
.wiki-body h2 {
    font-size: 1.2rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(196, 155, 56, 0.18);
}
.wiki-body h3 { font-size: 1.05rem; color: var(--ov-muted); }
.wiki-body h4,
.wiki-body h5,
.wiki-body h6 { font-size: 0.95rem; color: var(--ov-muted); }

.wiki-body p { margin-bottom: 0.85rem; }

.wiki-body a {
    color: var(--ov-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(224, 184, 79, 0.35);
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.wiki-body a:hover {
    color: var(--ov-gold-soft);
    text-decoration-color: var(--ov-gold);
}

.wiki-body ul,
.wiki-body ol {
    padding-left: 1.4rem;
    margin-bottom: 0.85rem;
}
.wiki-body li { margin-bottom: 0.25rem; }
.wiki-body ul li::marker { color: var(--ov-gold); opacity: 0.6; }

.wiki-body blockquote {
    margin: 1rem 0;
    padding: 0.65rem 1.1rem;
    border-left: 3px solid rgba(196, 155, 56, 0.5);
    background: rgba(196, 155, 56, 0.05);
    color: var(--ov-muted);
    font-style: italic;
}
.wiki-body blockquote p { margin: 0; }

.wiki-body code {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    padding: 0.1em 0.45em;
    font-size: 0.875em;
    color: var(--ov-gold-soft);
}
.wiki-body pre {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid rgba(196, 155, 56, 0.4);
    border-radius: 0 4px 4px 0;
    padding: 0.85rem 1.1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}
.wiki-body pre code {
    background: transparent;
    padding: 0;
    color: var(--ov-muted);
    font-size: 0.875rem;
}

.wiki-body hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 155, 56, 0.25), transparent);
    margin: 1.5rem 0;
}

.wiki-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ─── Tables ─── */

/* Wrapper for horizontal scroll on small screens */
.wiki-body table {
    width: 100%;
    border-collapse: collapse !important;
    /* Override any inline border/cellspacing from editor */
    border-spacing: 0 !important;
    margin: 1.1rem 0;
    font-size: 0.9rem;
    /* Clip rounded corners on the wrapper */
    border-radius: 6px;
    overflow: hidden;
    /* Override inline borders */
    border: none !important;
    outline: 1px solid rgba(196, 155, 56, 0.2);
}

/* thead row */
.wiki-body thead tr {
    background: linear-gradient(90deg, rgba(40, 28, 64, 0.98), rgba(28, 18, 48, 0.98)) !important;
}

.wiki-body thead th {
    padding: 0.7rem 1rem !important;
    color: var(--ov-gold) !important;
    font-family: var(--ov-font-display);
    font-size: 0.78rem !important;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: none !important;
    border-bottom: 1px solid rgba(196, 155, 56, 0.25) !important;
    white-space: nowrap;
    background: transparent !important;
    vertical-align: middle;
}

/* tbody rows */
.wiki-body tbody tr {
    background: rgba(20, 14, 34, 0.6) !important;
    transition: background 0.15s ease;
}
.wiki-body tbody tr:nth-child(even) {
    background: rgba(30, 22, 48, 0.7) !important;
}
.wiki-body tbody tr:hover {
    background: rgba(124, 58, 237, 0.1) !important;
}

.wiki-body tbody td {
    padding: 0.65rem 1rem !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    color: var(--ov-text) !important;
    vertical-align: middle;
    background: transparent !important; /* override inline styles */
}
.wiki-body tbody tr:last-child td {
    border-bottom: none !important;
}

/* Images inside table cells */
.wiki-body td img {
    vertical-align: middle;
    border-radius: 3px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* Responsive scroll: wrap each table in a scrollable container via CSS */
.wiki-body table {
    min-width: 480px; /* triggers scroll before breaking layout */
}


.wiki-tab-image,
.wiki-badge-image {
    width: 18px;
    height: 18px;
}

.wiki-tab-icon,
.wiki-badge-icon {
    display: inline-flex;
    align-items: center;
}

.wiki-icon-preview {
    min-width: 48px;
    justify-content: center;
}

.wiki-icon-preview-image {
    width: 24px;
    height: 24px;
}

.wiki-hero-shell {
    position: relative;
}

.wiki-hero-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    text-align: center;
}

.wiki-hero-bar .page-banner-title {
    max-width: none;
    width: 100%;
    text-align: center;
}

.footer-meta {
    display: flex;
    justify-content: center;
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
    color: var(--ov-muted);
    font-size: 0.92rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .hero-stage {
        grid-template-columns: 1fr;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-right {
        min-height: 260px;
    }

    .hero-card {
        max-width: 420px;
    }

    /* ── Collapsed navbar layout ── */
    .theme-navbar-inner {
        flex-wrap: wrap;
        padding-bottom: 0;
    }

    /* The collapsible panel takes full width and stacks vertically */
    .theme-navbar-collapse {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0 1rem;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .theme-navbar-center,
    .theme-navbar-right {
        flex: 0 0 auto;
        width: 100%;
    }

    /* Nav links stack vertically, full width */
    .theme-navbar-menu {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .theme-navbar-menu .nav-link,
    .theme-navbar-menu .dropdown-toggle {
        width: 100%;
        padding: 0.65rem 0 !important;
        min-height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .theme-navbar-menu .nav-link.active {
        box-shadow: none;
        color: var(--ov-accent, var(--ov-gold-soft)) !important;
    }

    /* Right side: login/register buttons stack full width */
    .theme-navbar-right {
        margin-top: 0.75rem;
    }

    .theme-navbar-actions {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: stretch;
        margin-left: 0;
        width: 100%;
    }

    .theme-nav-btn {
        width: 100%;
    }

    .btn-nav-register,
    .btn-nav-login {
        flex: 1;
        width: auto;
        height: 44px;
        border-radius: 8px;
        font-size: 0.9rem;
        gap: 0.4rem;
    }

    .btn-nav-label {
        display: inline;
    }
}

@media (max-width: 767.98px) {
    .page-hero-inner {
        padding-top: 1.4rem;
        padding-bottom: 1.8rem;
    }

    .page-hero-inner-compact {
        padding-top: 2rem;
        padding-bottom: 2.35rem;
    }

    .home-hero-inner {
        min-height: calc(100vh - 72px);
    }

    .hero-title,
    .page-banner-title {
        font-size: clamp(2.35rem, 10vw, 3.5rem);
    }

    .hero-actions,
    .footer-meta {
        flex-direction: column;
    }

    .hero-cta {
        width: 100%;
    }

    .home-alerts {
        margin-top: -2rem;
    }

    .theme-navbar-inner {
        min-height: auto;
        padding: 0.75rem 1rem 1rem;
        flex-wrap: wrap;
    }

    .theme-navbar .nav-link,
    .theme-user-link {
        min-height: auto;
        padding: 0.75rem 0 !important;
    }

    .footer-meta {
        flex-direction: column;
    }

    /* Wiki nav: stack tabs above actions on small screens */
    .wiki-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .wiki-nav-tabs {
        justify-content: center;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0;
    }

    .wiki-nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .wiki-nav-tab {
        flex-shrink: 0;
        padding: 0.5rem 0.85rem 0.65rem;
        font-size: 0.78rem;
    }

    .wiki-nav-actions {
        justify-content: center;
        padding: 0.5rem 0 0.65rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        gap: 1rem;
    }

    .wiki-body thead th {
        padding: 0.55rem 0.75rem !important;
        font-size: 0.72rem !important;
    }

    .wiki-body tbody td {
        padding: 0.55rem 0.75rem !important;
        font-size: 0.85rem !important;
    }

    .wiki-body {
        padding: 1.1rem 1rem;
    }

    .wiki-category-image {
        width: 72px;
        height: 72px;
    }
}

/* =============================== */
/* NAVBAR — BOTONES ICONO SOLO     */
/* =============================== */

.btn-nav-label {
    display: none;
}

.btn-nav-register,
.btn-nav-login {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    border-radius: 0;
    border-width: 1px;
    font-weight: 800;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.btn-nav-register {
    color: #171412;
    background: linear-gradient(180deg, #ffd972 0%, #e0b84f 100%);
    border-color: rgba(255, 237, 163, 0.55);
    box-shadow: inset 0 -3px 0 rgba(100, 72, 20, 0.55);
}

.btn-nav-register:hover {
    color: #120f09;
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: inset 0 -3px 0 rgba(100, 72, 20, 0.55), 0 4px 14px rgba(224, 184, 79, 0.28);
}

.btn-nav-login {
    color: #fff;
    background: linear-gradient(180deg, #b06bff 0%, #7c3aed 100%);
    border-color: rgba(196, 181, 253, 0.45);
    box-shadow: inset 0 -3px 0 rgba(40, 10, 100, 0.6);
}

.btn-nav-login:hover {
    color: #fff;
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: inset 0 -3px 0 rgba(40, 10, 100, 0.6), 0 4px 14px rgba(124, 58, 237, 0.35);
}

/* btn-nav mobile handled inside the main ≤991.98px block above */

/* =============================== */
/* NAVBAR — BOTÓN CTA DESTACADO    */
/* =============================== */

.nav-item--cta {
    margin-left: 0.35rem;
}

.theme-navbar .nav-link--cta,
.nav-link--cta {
    display: inline-flex !important;
    align-items: center;
    height: 34px;
    padding: 0 1.1rem !important;
    color: #000 !important;
    background: linear-gradient(180deg, #ffe87a 0%, #e0b84f 58%, #c49b30 100%);
    border: 1px solid rgba(255, 237, 163, 0.55);
    box-shadow:
        inset 0  2px 0 rgba(255, 255, 255, 0.28),
        inset 0 -3px 0 rgba(100, 72, 20, 0.55);
    font-family: var(--ov-font-display);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.theme-navbar .nav-link--cta:hover,
.theme-navbar .nav-link--cta:focus-visible,
.nav-link--cta:hover,
.nav-link--cta:focus-visible {
    color: #3a2e00 !important;
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow:
        inset 0  2px 0 rgba(255, 255, 255, 0.28),
        inset 0 -3px 0 rgba(100, 72, 20, 0.55),
        0 4px 16px rgba(224, 184, 79, 0.32);
}

.theme-navbar .nav-link--cta.active,
.nav-link--cta.active {
    color: #000 !important;
    filter: brightness(1.08);
    box-shadow:
        inset 0  2px 0 rgba(255, 255, 255, 0.28),
        inset 0 -3px 0 rgba(100, 72, 20, 0.55),
        0 0 12px rgba(224, 184, 79, 0.40);
}

/* =============================== */
/* CHANGELOG PLUGIN                */
/* =============================== */

.changelog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}

.changelog-card {
    position: relative;
    background: linear-gradient(160deg, rgba(28, 18, 52, 0.94) 0%, rgba(16, 10, 32, 0.98) 100%);
    box-shadow:
        0 0 0 1px  rgba(196, 155, 56, 0.70),
        0 0 0 5px  rgba(6,   3,  14, 0.88),
        0 0 0 6px  rgba(140, 100, 30, 0.38),
        0 28px 64px rgba(4,  2,  12, 0.72),
        0 0  52px  rgba(196, 155, 56, 0.07);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.changelog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1;
    background: linear-gradient(
        90deg,
        #6b4e14  0%,
        #c49b38 28%,
        #ffe87a 50%,
        #c49b38 72%,
        #6b4e14 100%
    );
}

.changelog-card:hover {
    box-shadow:
        0 0 0 1px  rgba(224, 184, 79, 0.90),
        0 0 0 5px  rgba(6,   3,  14, 0.88),
        0 0 0 6px  rgba(196, 155, 56, 0.55),
        0 36px 76px rgba(4,  2,  12, 0.78),
        0 0  68px  rgba(224, 184, 79, 0.14);
}

.changelog-card .card-body {
    padding: 1.15rem 1.2rem 1.2rem;
}

.changelog-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.changelog-card-title {
    margin: 0;
    font-family: var(--ov-font-display);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.25;
}

.changelog-date-badge {
    flex-shrink: 0;
    padding: 0.22rem 0.65rem;
    font-family: var(--ov-font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ov-gold);
    background: rgba(224, 184, 79, 0.1);
    border: 1px solid rgba(224, 184, 79, 0.28);
    white-space: nowrap;
    line-height: 1.4;
}

.changelog-content {
    color: var(--ov-muted);
    font-size: 0.92rem;
    line-height: 1.68;
}

.changelog-content p:last-child {
    margin-bottom: 0;
}

.changelog-content ul,
.changelog-content ol {
    padding-left: 1.4rem;
    margin-bottom: 0.5rem;
}

.changelog-content li {
    margin-bottom: 0.25rem;
}

@media (max-width: 767.98px) {
    .changelog-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════
   PAGE BOX — shared across /user, /profile, /login,
   /registro, /changelog, /normas, /legal, /misiones
   ═══════════════════════════════════════════════════ */
.page-box,
.profile-box {
    border-radius: .75rem;
    border: 1px solid rgba(255,255,255,.07);
    background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%);
    overflow: hidden;
}
.page-section,
.profile-section {
    padding: 1.75rem 2rem;
}
.page-section + .page-section,
.profile-section + .profile-section {
    border-top: 1px solid rgba(255,255,255,.07);
}
.section-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .6;
    font-weight: 700;
    margin-bottom: 1.1rem;
}

/* ── Cabecera de box con icono opcional ── */
.page-box-header {
    padding: .85rem 1.5rem;
    border-bottom: 1px solid rgba(196,155,56,.12);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    opacity: .65;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.page-box-header i,
.page-box-header .bi {
    color: inherit;
}

/* ── Anchos de página estándar ── */
.ov-page    { max-width: 1100px; margin-inline: auto; }
.ov-page-md { max-width:  920px; margin-inline: auto; }
.ov-page-sm { max-width:  780px; margin-inline: auto; }

.profile-avatar {
    image-rendering: pixelated;
    border-radius: 6px;
    flex-shrink: 0;
}
.role-badge {
    display: inline-block;
    padding: .2em .75em;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}
.profile-meta {
    font-size: .78rem;
    opacity: .45;
    margin-top: .35rem;
}
.profile-action-icons {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    gap: .4rem;
}
.profile-action-icons .btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
}
.btn-success-custom {
    color: #04120a;
    background: linear-gradient(180deg, #7aff9e 0%, #4fd870 60%, #30a84f 100%);
    border-color: #a0f5b8;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.28), inset 0 -4px 0 rgba(27,107,51,.48), 0 0 12px rgba(79,216,112,.14);
}
.btn-success-custom:hover { color: #04120a; filter: brightness(1.07); }
.btn-danger-custom {
    color: #120404;
    background: linear-gradient(180deg, #ff7a7a 0%, #e04f4f 60%, #c93030 100%);
    border-color: #f5a0a0;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.28), inset 0 -4px 0 rgba(107,27,27,.48), 0 0 12px rgba(224,79,79,.14);
}
.btn-danger-custom:hover { color: #120404; filter: brightness(1.07); }

/* Profile edit button */
.profile-edit-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: all;
}
.profile-edit-btn i {
    pointer-events: none;
}

/* Stats grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem .75rem;
}
@media (max-width: 500px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-cell { text-align: center; }
.stat-cell img {
    image-rendering: pixelated;
    width: 32px; height: 32px;
    object-fit: contain;
    display: block;
    margin: 0 auto .5rem;
    opacity: .65;
}
.stat-number { font-size: 1.5rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.stat-label { font-size: .62rem; opacity: .4; margin-top: .3rem; text-transform: uppercase; letter-spacing: .07em; }

/* Dimension bars */
.dim-row { margin-bottom: .9rem; }
.dim-row:last-child { margin-bottom: 0; }
.dim-header { display: flex; justify-content: space-between; font-size: .78rem; margin-bottom: .3rem; opacity: .7; }
.dim-bar { height: 4px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.dim-fill { height: 100%; border-radius: 99px; }

/* Achievements */
.achievement-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.achievement-badge {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: default;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.achievement-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.achievement-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    padding: 6px;
}
.achievement-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    opacity: 0.5;
}
.achievement-rarity-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
}

/* Bio & location */
.profile-bio { font-size: .88rem; opacity: .8; white-space: pre-wrap; line-height: 1.6; margin: 0; }
.region-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .2rem; }
.region-desc { font-size: .82rem; opacity: .6; margin-bottom: .35rem; line-height: 1.5; }
.location-coords { font-size: .72rem; opacity: .4; margin-top: .15rem; }

/* ═══════════════════════════════════════════════════
   POSTS / NEWS
   ═══════════════════════════════════════════════════ */
.post-cover {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    max-height: 380px;
}
.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ═══════════════════════════════════════════════════
   CMS PAGE — /jugar
   ═══════════════════════════════════════════════════ */
.cms-edition-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.cms-edition-card {
    flex: 1 1 260px;
    padding: 1.25rem;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(196,155,56,.22);
    border-radius: 8px;
    text-align: center;
}
.cms-edition-card img {
    display: block;
    width: 100%;
    max-width: 260px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto .75rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}
.cms-copy-toast {
    position: fixed;
    background: rgba(196,155,56,.95);
    color: #120d04;
    font-family: var(--ov-font-display);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .4rem 1rem;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 9999;
    white-space: nowrap;
}
.cms-copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}
.cms-edition-label {
    font-family: var(--ov-font-display);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ov-muted);
    margin-bottom: .5rem;
}
.cms-ip-pill {
    display: inline-block;
    padding: .45rem 1rem;
    border: 1px solid rgba(196,155,56,.4);
    background: rgba(196,155,56,.07);
    border-radius: 4px;
    font-family: monospace;
    font-size: .95rem;
    font-weight: 700;
    color: var(--ov-gold);
    cursor: pointer;
    transition: background .15s ease;
    user-select: all;
}
.cms-ip-pill:hover { background: rgba(196,155,56,.15); }
.cms-launcher-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    justify-content: center;
}
.cms-launcher-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1rem 1.5rem;
    min-width: 130px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.1);
    text-decoration: none;
    font-family: var(--ov-font-display);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    transition: transform .15s ease, filter .15s ease;
}
.cms-launcher-btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; text-decoration: none; }
.cms-launcher-btn img { width: 40px; height: 40px; object-fit: contain; }
.cms-launcher-minecraft { background: linear-gradient(180deg,#f7e8a8,#d9b95a); color: #120d04 !important; border-color: rgba(255,237,163,.4); }
.cms-launcher-modrinth  { background: linear-gradient(180deg,#7fe5a0,#4caf70); border-color: rgba(150,255,190,.3); }
.cms-launcher-lunar     { background: linear-gradient(180deg,#b3baff,#7a82e0); border-color: rgba(180,185,255,.3); }
.cms-launcher-prism     { background: linear-gradient(180deg,#e4ccff,#b38ae6); border-color: rgba(233,213,255,.3); }

/* ═══════════════════════════════════════════════════
   CMS PAGES — /normas /legal /misiones
   ═══════════════════════════════════════════════════ */

/* ─── Rules list (/normas) ─── */
.cms-rules-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cms-rule {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(196, 155, 56, 0.12);
}
.cms-rule:last-child { border-bottom: none; }
.cms-rule-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(196, 155, 56, 0.4);
    border-radius: 50%;
    font-family: var(--ov-font-display);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--ov-gold);
    margin-top: 0.1rem;
}
.cms-rule-title {
    font-family: var(--ov-font-display);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ov-text);
    margin-bottom: 0.25rem;
}
.cms-rule-text {
    font-size: 0.91rem;
    color: var(--ov-muted);
    line-height: 1.6;
    margin: 0;
}

/* ─── Quest cards (/misiones) ─── */
.cms-quest {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(196, 155, 56, 0.18);
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.cms-quest:hover {
    border-color: rgba(196, 155, 56, 0.38);
    background: rgba(196, 155, 56, 0.05);
}
.cms-quest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--ov-muted);
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(196, 155, 56, 0.15);
}
.cms-quest-title {
    font-family: var(--ov-font-display);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--ov-text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.cms-quest-title i { color: var(--ov-gold); opacity: 0.8; }
.cms-quest-desc {
    font-size: 0.88rem;
    color: var(--ov-muted);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}
.cms-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(196, 155, 56, 0.25);
    border-radius: 4px;
    background: rgba(196, 155, 56, 0.05);
    font-size: 0.83rem;
    color: var(--ov-text);
    margin-top: auto;
}
.cms-benefit img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ─── Badges ─── */
.cms-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2em 0.6em;
    border-radius: 3px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.cms-badge-active   { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.cms-badge-next     { background: rgba(224, 184, 79, 0.15);  color: var(--ov-gold); border: 1px solid rgba(224, 184, 79, 0.3); }
.cms-badge-locked   { background: rgba(255, 255, 255, 0.05); color: var(--ov-muted); border: 1px solid rgba(255,255,255,0.1); }
.cms-badge-done     { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border: 1px solid rgba(148,163,184,0.2); text-decoration: line-through; }


/* ═══════════════════════════════════════════════════
   HERO CONTAINER
   ═══════════════════════════════════════════════════ */
.home-page-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}



/* ═══════════════════════════════════════════════════
   CARACTERÍSTICAS — icono circular, sin cajas
   ═══════════════════════════════════════════════════ */
.home-feature-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1.2rem;
    margin-top: 1.0rem;
    width: 100%;
}
.home-feature-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0;
    background: transparent;
    border: none;
}
.home-feature-slot {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(196,155,56,0.22);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(196,155,56,0.10);
    transition: border-color 0.20s, box-shadow 0.20s;
}
.home-feature-card:hover .home-feature-slot {
    border-color: rgba(196,155,56,0.55);
    box-shadow: 0 0 18px rgba(196,155,56,0.24);
}
.home-feature-icon {
    font-size: 1.0rem;
    color: #e0b84f;
    opacity: 0.88;
}
.home-feature-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 0.06rem;
}
.home-feature-label {
    display: block;
    font-family: var(--ov-font-display);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(240, 236, 255, 0.94);
    line-height: 1.25;
    margin-bottom: 0.28rem;
    white-space: normal;
}
.home-feature-sub {
    display: block;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.63rem;
    line-height: 1.45;
    color: rgba(182, 168, 212, 0.60);
    white-space: normal;
}
@media (max-width: 575.98px) {
    .home-feature-cards { grid-template-columns: 1fr; gap: 0.55rem; }
}

/* ═══════════════════════════════════════════════════
   SHOOTING STARS
   ═══════════════════════════════════════════════════
   SHOOTING STARS
   ═══════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════
   HERO BACKGROUND — NEBULOSA + ESTRELLAS + PARTÍCULAS
   ═══════════════════════════════════════════════════ */

/* ── Nebulosa (desktop) ── */
.hero-nebula {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.nebula-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform, opacity;
}

.nebula-orb--1 {
    width: 55vw; height: 55vw;
    top: -18%; left: -10%;
    background: radial-gradient(circle, rgba(124,58,237,.22) 0%, rgba(124,58,237,.06) 55%, transparent 75%);
    animation: orb-drift 28s 0s ease-in-out infinite alternate;
}
.nebula-orb--2 {
    width: 45vw; height: 45vw;
    top: 20%; right: -12%;
    background: radial-gradient(circle, rgba(196,148,56,.18) 0%, rgba(196,148,56,.05) 55%, transparent 75%);
    animation: orb-drift 34s 6s ease-in-out infinite alternate-reverse;
}
.nebula-orb--3 {
    width: 38vw; height: 38vw;
    bottom: -10%; left: 28%;
    background: radial-gradient(circle, rgba(168,85,247,.16) 0%, rgba(168,85,247,.04) 55%, transparent 75%);
    animation: orb-drift 22s 12s ease-in-out infinite alternate;
}
.nebula-orb--4 {
    width: 30vw; height: 30vw;
    top: 10%; left: 42%;
    background: radial-gradient(circle, rgba(224,184,79,.12) 0%, rgba(224,184,79,.03) 55%, transparent 75%);
    animation: orb-drift 40s 3s ease-in-out infinite alternate-reverse;
}

@keyframes orb-drift {
    0%   { transform: translate(0, 0)      scale(1);    opacity: .85; }
    33%  { transform: translate(4%, -5%)   scale(1.06); opacity: 1;   }
    66%  { transform: translate(-3%, 4%)   scale(.96);  opacity: .80; }
    100% { transform: translate(5%, 2%)    scale(1.04); opacity: .90; }
}

/* ── Campo estelar ── */
.hero-starfield {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    will-change: opacity;
}

/* Tamaños */
.star-s { width: 1px;  height: 1px;  }
.star-m { width: 2px;  height: 2px;  }
.star-l { width: 3px;  height: 3px;  box-shadow: 0 0 4px 1px rgba(224,184,79,.55); }

/* Animación twinkle con nth-child para distribuir timing */
@keyframes twinkle {
    0%,100% { opacity: .12; transform: scale(1); }
    50%      { opacity: .90; transform: scale(1.3); }
}

.star:nth-child(1)  { top:  4%; left:  7%; animation: twinkle 3.8s 0.2s  ease-in-out infinite; }
.star:nth-child(2)  { top: 12%; left: 18%; animation: twinkle 4.5s 1.1s  ease-in-out infinite; }
.star:nth-child(3)  { top:  2%; left: 31%; animation: twinkle 5.2s 0.7s  ease-in-out infinite; }
.star:nth-child(4)  { top:  8%; left: 44%; animation: twinkle 3.3s 2.4s  ease-in-out infinite; }
.star:nth-child(5)  { top: 18%; left: 56%; animation: twinkle 6.1s 0.4s  ease-in-out infinite; }
.star:nth-child(6)  { top:  5%; left: 67%; animation: twinkle 4.0s 1.8s  ease-in-out infinite; }
.star:nth-child(7)  { top: 22%; left: 78%; animation: twinkle 3.6s 3.2s  ease-in-out infinite; }
.star:nth-child(8)  { top:  1%; left: 88%; animation: twinkle 5.8s 0.9s  ease-in-out infinite; }
.star:nth-child(9)  { top: 15%; left: 92%; animation: twinkle 4.2s 2.1s  ease-in-out infinite; }
.star:nth-child(10) { top: 30%; left:  3%; animation: twinkle 3.9s 0.6s  ease-in-out infinite; }
.star:nth-child(11) { top: 35%; left: 14%; animation: twinkle 5.5s 1.5s  ease-in-out infinite; }
.star:nth-child(12) { top: 28%; left: 25%; animation: twinkle 4.7s 3.8s  ease-in-out infinite; }
.star:nth-child(13) { top: 42%; left: 38%; animation: twinkle 3.4s 0.3s  ease-in-out infinite; }
.star:nth-child(14) { top: 38%; left: 51%; animation: twinkle 6.3s 2.7s  ease-in-out infinite; }
.star:nth-child(15) { top: 48%; left: 62%; animation: twinkle 4.1s 1.3s  ease-in-out infinite; }
.star:nth-child(16) { top: 33%; left: 74%; animation: twinkle 5.0s 4.1s  ease-in-out infinite; }
.star:nth-child(17) { top: 45%; left: 85%; animation: twinkle 3.7s 0.8s  ease-in-out infinite; }
.star:nth-child(18) { top: 52%; left: 95%; animation: twinkle 4.9s 2.9s  ease-in-out infinite; }
.star:nth-child(19) { top: 58%; left:  8%; animation: twinkle 3.5s 1.6s  ease-in-out infinite; }
.star:nth-child(20) { top: 62%; left: 20%; animation: twinkle 5.4s 3.5s  ease-in-out infinite; }
.star:nth-child(21) { top: 55%; left: 33%; animation: twinkle 4.3s 0.5s  ease-in-out infinite; }
.star:nth-child(22) { top: 68%; left: 46%; animation: twinkle 6.0s 2.2s  ease-in-out infinite; }
.star:nth-child(23) { top: 72%; left: 57%; animation: twinkle 3.8s 4.4s  ease-in-out infinite; }
.star:nth-child(24) { top: 65%; left: 70%; animation: twinkle 5.1s 1.0s  ease-in-out infinite; }
.star:nth-child(25) { top: 78%; left: 81%; animation: twinkle 4.6s 3.0s  ease-in-out infinite; }
.star:nth-child(26) { top: 82%; left: 91%; animation: twinkle 3.2s 1.9s  ease-in-out infinite; }
.star:nth-child(27) { top: 88%; left: 12%; animation: twinkle 5.7s 0.1s  ease-in-out infinite; }
.star:nth-child(28) { top: 92%; left: 27%; animation: twinkle 4.4s 2.5s  ease-in-out infinite; }
.star:nth-child(29) { top: 85%; left: 42%; animation: twinkle 3.6s 3.7s  ease-in-out infinite; }
.star:nth-child(30) { top: 95%; left: 60%; animation: twinkle 5.3s 1.4s  ease-in-out infinite; }
.star:nth-child(31) { top: 90%; left: 73%; animation: twinkle 4.8s 0.0s  ease-in-out infinite; }
.star:nth-child(32) { top: 75%; left:  2%; animation: twinkle 6.2s 2.8s  ease-in-out infinite; }
.star:nth-child(33) { top: 10%; left: 52%; animation: twinkle 3.3s 4.6s  ease-in-out infinite; }
.star:nth-child(34) { top: 24%; left: 84%; animation: twinkle 5.6s 1.2s  ease-in-out infinite; }
.star:nth-child(35) { top: 44%; left:  0%; animation: twinkle 4.0s 3.3s  ease-in-out infinite; }
.star:nth-child(36) { top: 18%; left: 40%; animation: twinkle 3.9s 0.8s  ease-in-out infinite; }
.star:nth-child(37) { top: 50%; left: 17%; animation: twinkle 5.0s 2.0s  ease-in-out infinite; }
.star:nth-child(38) { top: 70%; left: 35%; animation: twinkle 4.2s 4.2s  ease-in-out infinite; }
.star:nth-child(39) { top:  6%; left: 96%; animation: twinkle 3.7s 1.7s  ease-in-out infinite; }
.star:nth-child(40) { top: 40%; left: 65%; animation: twinkle 6.4s 3.1s  ease-in-out infinite; }
.star:nth-child(41) { top: 80%; left: 50%; animation: twinkle 4.5s 0.4s  ease-in-out infinite; }
.star:nth-child(42) { top: 16%; left:  1%; animation: twinkle 5.9s 2.6s  ease-in-out infinite; }
.star:nth-child(43) { top: 54%; left: 48%; animation: twinkle 3.4s 1.3s  ease-in-out infinite; }
.star:nth-child(44) { top: 26%; left: 98%; animation: twinkle 4.7s 3.9s  ease-in-out infinite; }
.star:nth-child(45) { top: 60%; left: 88%; animation: twinkle 5.2s 0.6s  ease-in-out infinite; }
.star:nth-child(46) { top: 98%; left: 15%; animation: twinkle 3.5s 2.3s  ease-in-out infinite; }
.star:nth-child(47) { top: 36%; left: 30%; animation: twinkle 4.8s 4.0s  ease-in-out infinite; }
.star:nth-child(48) { top: 77%; left: 62%; animation: twinkle 6.5s 1.5s  ease-in-out infinite; }

/* ── Partículas mágicas ascendentes ── */
.hero-embers {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.ember {
    position: absolute;
    bottom: -8px;
    border-radius: 50%;
    will-change: transform, opacity;
}

@keyframes ember-rise {
    0%   { transform: translateY(0)    translateX(0)    scale(1);    opacity: 0; }
    8%   { opacity: 1; }
    50%  { transform: translateY(-45vh) translateX(12px)  scale(.8); opacity: .75; }
    85%  { opacity: .3; }
    100% { transform: translateY(-88vh) translateX(-8px)  scale(.4); opacity: 0; }
}

.ember-1 { left: 8%;  width: 4px; height: 4px; background: rgba(224,184,79,.9);  box-shadow: 0 0 6px 2px rgba(224,184,79,.6);  animation: ember-rise 12s 0s    ease-in infinite; }
.ember-2 { left: 22%; width: 3px; height: 3px; background: rgba(168,85,247,.85); box-shadow: 0 0 5px 2px rgba(168,85,247,.55); animation: ember-rise 16s 3.5s  ease-in infinite; }
.ember-3 { left: 38%; width: 5px; height: 5px; background: rgba(196,148,56,.9);  box-shadow: 0 0 8px 3px rgba(196,148,56,.5);  animation: ember-rise 10s 7s    ease-in infinite; }
.ember-4 { left: 54%; width: 3px; height: 3px; background: rgba(124,58,237,.80); box-shadow: 0 0 5px 2px rgba(124,58,237,.5);  animation: ember-rise 18s 1.5s  ease-in infinite; }
.ember-5 { left: 67%; width: 4px; height: 4px; background: rgba(245,214,117,.9); box-shadow: 0 0 7px 2px rgba(245,214,117,.6); animation: ember-rise 13s 9s    ease-in infinite; }
.ember-6 { left: 79%; width: 3px; height: 3px; background: rgba(168,85,247,.75); box-shadow: 0 0 5px 1px rgba(168,85,247,.5);  animation: ember-rise 15s 4.5s  ease-in infinite; }
.ember-7 { left: 88%; width: 4px; height: 4px; background: rgba(224,184,79,.85); box-shadow: 0 0 6px 2px rgba(224,184,79,.55); animation: ember-rise 11s 12s   ease-in infinite; }
.ember-8 { left: 46%; width: 3px; height: 3px; background: rgba(196,148,56,.80); box-shadow: 0 0 5px 1px rgba(196,148,56,.45); animation: ember-rise 20s 6s    ease-in infinite; }

/* Nebulosa desactivada en móvil */
@media (max-width: 767.98px) {
    .hero-nebula { display: none; }
}

.shooting-stars-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

.ss {
    position: absolute;
    width: 110px;
    height: 1.5px;
    border-radius: 2px;
    background: linear-gradient(to right,
        rgba(255, 248, 200, 0)    0%,
        rgba(255, 248, 200, 0.50) 35%,
        rgba(255, 255, 255, 0.88) 78%,
        rgba(255, 255, 255, 0.65) 100%);
    opacity: 0;
    will-change: transform, opacity;
}
@keyframes ss-fly {
    0%   { opacity: 0;              transform: rotate(var(--ss-a)) translate(0, 0); }
    8%   { opacity: var(--ss-o); }
    46%  { opacity: 0;              transform: rotate(var(--ss-a)) translate(var(--ss-dx), var(--ss-dy)); }
    100% { opacity: 0;              transform: rotate(var(--ss-a)) translate(var(--ss-dx), var(--ss-dy)); }
}
.ss-1 { top:  6%; left: 12%; --ss-a: -38deg; --ss-dx: 560px; --ss-dy: 430px; --ss-o: 0.48;
         animation: ss-fly 14s 2.5s  linear infinite; }
.ss-2 { top:  2%; left: 48%; --ss-a: -42deg; --ss-dx: 490px; --ss-dy: 385px; --ss-o: 0.38;
         animation: ss-fly 19s 8s    linear infinite; }
.ss-3 { top: 14%; left: 72%; --ss-a: -35deg; --ss-dx: 530px; --ss-dy: 395px; --ss-o: 0.44;
         animation: ss-fly 11s 1s    linear infinite; }
.ss-4 { top:  4%; left: 84%; --ss-a: -40deg; --ss-dx: 410px; --ss-dy: 325px; --ss-o: 0.36;
         animation: ss-fly 16s 5.5s  linear infinite; }
.ss-5 { top: 21%; left: 28%; --ss-a: -36deg; --ss-dx: 610px; --ss-dy: 460px; --ss-o: 0.40;
         animation: ss-fly 21s 13s   linear infinite; }

/* ═══════════════════════════════════════════════════
   NEWS SLIDER
   ═══════════════════════════════════════════════════ */
.news-slider {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.news-slides-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
}
.news-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}
.news-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.news-slide .home-news-card {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: unset;
    display: flex;
}
.home-news-date {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin-top: 0.25rem;
    font-family: var(--ov-font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(196, 155, 56, 0.72);
}
.news-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    padding: 0.80rem 0 0;
}
.news-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(196, 155, 56, 0.40);
    background: rgba(196, 155, 56, 0.14);
    cursor: pointer;
    padding: 0;
    transition: background 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.news-dot.is-active {
    background: #e0b84f;
    border-color: #e0b84f;
    transform: scale(1.40);
}
.news-dot:hover:not(.is-active) {
    background: rgba(224, 184, 79, 0.40);
    border-color: rgba(224, 184, 79, 0.60);
}
/* Responsive: slider en mobile */
@media (max-width: 991.98px) {
    .news-slides-wrap { min-height: 240px; }
    .news-slide .home-news-card { min-height: unset; }
}
@media (max-width: 767.98px) {
    .news-slides-wrap { min-height: 200px; }
}
