: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;
}

.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;
    }

    .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 */

/* =============================== */
/* 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;
    }
}

/* ═══════════════════════════════════════════════════
   HOME HERO — from home-banner.css
   ═══════════════════════════════════════════════════ */
.home-hero-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 3vw, 3.5rem);
}
.home-hero-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: clamp(2.5rem, 5vw, 6rem);
    align-items: stretch;
    min-height: calc(100vh - 76px - 72px);
    padding: clamp(2rem, 4vh, 4.5rem) 0 clamp(2rem, 3vh, 3.5rem);
}
.home-hero-right {
    height: 80%;
    display: flex;
    justify-content: center;
}
.home-news-card {
    flex: 1;
    max-height: 100%;
    overflow: hidden;
}
.home-hero-left {
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.home-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0.32rem 0.9rem 0.32rem 0.65rem;
    font-family: var(--ov-font-display);
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e0b84f;
    background: rgba(196, 155, 56, 0.10);
    border: 1px solid rgba(196, 155, 56, 0.30);
    border-left: 3px solid #e0b84f;
}
.home-mini-badge i { font-size: 0.82rem; opacity: 0.80; }
.home-title {
    margin: 0 0 1.1rem;
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 3.8vw, 3.2rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: 0.05em;
    text-transform: none;
    background: linear-gradient(162deg, #c49b38 0%, #e0b84f 18%, #ffe87a 42%, #e0b84f 66%, #c49b38 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter:
        drop-shadow(0 0 70px rgba(196, 155, 56, 0.62))
        drop-shadow(0 3px 0   rgba(60, 36, 0, 0.88))
        drop-shadow(0 6px 10px rgba(4, 2, 12, 0.68))
        drop-shadow(0 -1px 0  rgba(255, 248, 160, 0.20));
}
.home-desc {
    max-width: 100%;
    margin: 0 0 1.75rem;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.78;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgba(212, 205, 228, 0.88);
}
.home-rule {
    width: 100%;
    height: 1px;
    margin: 0 0 1.4rem;
    background: linear-gradient(90deg, transparent 0%, rgba(196, 155, 56, 0.55) 20%, rgba(196, 155, 56, 0.22) 80%, transparent 100%);
}
.home-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.75rem;
    padding: 0.32rem 0.9rem 0.32rem 0.65rem;
    font-family: var(--ov-font-display);
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(238, 234, 250, 0.92);
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.22);
    border-left: 3px solid #4ade80;
}
.home-status-badge--offline {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.22);
    border-left-color: #f87171;
}
.home-status-count { color: inherit; }
.home-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    animation: pulse-green 2.4s ease-in-out infinite;
}
.home-status-dot.is-offline { background: #f87171; animation: none; }
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.65); transform: scale(1); }
    50%       { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); transform: scale(1.18); }
}
.home-status-sep { color: rgba(196, 155, 56, 0.55); font-size: 0.85rem; flex-shrink: 0; }
.home-player-heads { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.player-head {
    width: 24px; height: 24px;
    border-radius: 3px;
    image-rendering: pixelated;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.65));
    transition: transform 0.15s ease;
}
.player-head:hover { transform: translateY(-2px) scale(1.15); }
.home-actions { display: flex; gap: 0.70rem; flex-wrap: wrap; align-items: center; }
.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    height: 48px;
    padding: 0 1.5rem;
    font-family: var(--ov-font-display);
    font-size: 0.80rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}
.home-btn-enter {
    color: #0e0900;
    background: linear-gradient(180deg, #ffe87a 0%, #e0b84f 58%, #c49b30 100%);
    border: 1px solid #f5dea0;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.32), inset 0 -3px 0 rgba(100,75,18,0.62), 0 0 24px rgba(224,184,79,0.20);
}
.home-btn-discord {
    color: #ffffff;
    background: linear-gradient(180deg, #7b85ff 0%, #5865f2 100%);
    border: 1px solid #8893ff;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.20), inset 0 -3px 0 rgba(38,46,160,0.58);
}
.home-btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.home-btn-enter:hover { box-shadow: inset 0 2px 0 rgba(255,255,255,0.32), inset 0 -3px 0 rgba(100,75,18,0.62), 0 0 38px rgba(224,184,79,0.38); }
.enter-btn-track { position: relative; overflow: hidden; height: 1em; flex: 1; min-width: 0; }
.enter-label { position: absolute; left: 0; right: 0; white-space: nowrap; line-height: 1em; transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), opacity 0.22s cubic-bezier(0.4,0,0.2,1); }
.enter-label--default { top: 0; transform: translateY(0); opacity: 1; }
.enter-label--hover { top: 0; transform: translateY(100%); opacity: 0; }
.home-btn-enter:hover .enter-label--default, .home-btn-enter:focus-visible .enter-label--default { transform: translateY(-100%); opacity: 0; }
.home-btn-enter:hover .enter-label--hover, .home-btn-enter:focus-visible .enter-label--hover { transform: translateY(0); opacity: 1; }
.home-hero-right { display: flex; flex-direction: column; align-items: stretch; padding: clamp(2rem, 4vh, 5rem) 0; }
.home-news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    width: 100%;
    min-height: clamp(280px, 42vh, 480px);
    overflow: hidden;
    text-decoration: 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: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-news-card:hover { transform: translateY(-5px) scale(1.01); 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); }
.home-news-img { position: absolute; inset: 0; background-image: var(--news-img, none); background-size: cover; background-position: center; background-color: rgba(8,4,20,0.96); transition: transform 0.35s ease; }
.home-news-card:hover .home-news-img { transform: scale(1.05); }
.home-news-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,2,12,0.96) 0%, rgba(4,2,12,0.68) 38%, rgba(4,2,12,0.18) 68%, transparent 100%); }
.home-news-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3; background: linear-gradient(90deg, #6b4e14 0%, #c49b38 28%, #ffe87a 50%, #c49b38 72%, #6b4e14 100%); }
.home-news-body { position: relative; z-index: 2; padding: 1.6rem 1.5rem 1.75rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; }
.home-news-title { margin: 0; font-family: var(--ov-font-display); font-size: clamp(0.95rem, 2vw, 1.15rem); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; line-height: 1.25; }
.home-news-desc { margin: 0; font-family: 'Noto Sans', sans-serif; font-size: 0.82rem; color: rgba(210,204,228,0.75); line-height: 1.52; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-news-cta { display: inline-flex; align-items: center; gap: 0.30rem; margin-top: 0.2rem; font-family: var(--ov-font-display); font-size: 0.70rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #e0b84f; opacity: 0.85; transition: opacity 0.18s ease; }
.home-news-card:hover .home-news-cta { opacity: 1; }
@media (max-width: 1199.98px) { .home-hero-grid { grid-template-columns: 7fr 5fr; gap: clamp(2rem, 4vw, 4rem); } }
@media (max-width: 991.98px) {
    .home-hero-grid { grid-template-columns: 1fr; align-items: start; min-height: auto; padding: 2.5rem 0 3.5rem; gap: 2.5rem; }
    .home-hero-left { justify-content: flex-start; }
    .home-hero-right { height: auto; }
    .home-news-card { flex: none; min-height: 240px; max-width: 540px; margin: 0 auto; width: 100%; }
    .home-title { font-size: clamp(1.75rem, 7vw, 2.8rem); }
}
@media (max-width: 767.98px) {
    .home-hero-wrap { padding: 0 1rem; }
    .home-title { font-size: clamp(1.5rem, 9vw, 2.2rem); }
    .home-desc { font-size: 0.94rem; }
    .home-actions { flex-direction: column; }
    .home-btn { width: 100%; justify-content: center; }
    .home-news-card { min-height: 200px; }
}

/* ═══════════════════════════════════════════════════
   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;
}
.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; }

/* ═══════════════════════════════════════════════════
   FULL-VIEWPORT HERO (con franja de características)
   ═══════════════════════════════════════════════════ */

/* El hero ocupa exactamente 100vh */
.home-page-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* El wrap principal crece para llenar el espacio disponible */
.home-hero-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* El grid también crece dentro del wrap; se elimina el min-height fijo */
.home-hero-grid {
    flex: 1;
    min-height: 0;
}

/* Las columnas interiores también se adaptan */
.home-hero-left,
.home-hero-right {
    height: auto;
}

/* ═══════════════════════════════════════════════════
   CARACTERÍSTICAS (4 columnas, estructura vertical, borde inferior)
   ═══════════════════════════════════════════════════ */
.home-feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.50rem;
    margin-top: 1.30rem;
    width: 100%;
}
.home-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.22rem;
    padding: 0.65rem 0.50rem 0.70rem;
    border: 1px solid rgba(196, 155, 56, 0.12);
    border-bottom: 2px solid rgba(196, 155, 56, 0.52);
    background: rgba(196, 155, 56, 0.04);
    transition: background 0.18s ease, border-bottom-color 0.18s ease;
}
.home-feature-card:hover {
    background: rgba(196, 155, 56, 0.09);
    border-bottom-color: #e0b84f;
}
.home-feature-icon {
    font-size: 1.10rem;
    color: #e0b84f;
    opacity: 0.84;
    margin-bottom: 0.12rem;
}
.home-feature-label {
    font-family: var(--ov-font-display);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240, 236, 250, 0.90);
    line-height: 1.2;
}
.home-feature-sub {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.57rem;
    line-height: 1.4;
    color: rgba(194, 184, 216, 0.55);
}
/* Tablet: 2 columnas */
@media (max-width: 991.98px) {
    .home-feature-cards { grid-template-columns: repeat(2, 1fr); }
}
/* Móvil: columna única, apilado vertical */
@media (max-width: 575.98px) {
    .home-feature-cards { grid-template-columns: 1fr; }
    .home-feature-card  { flex-direction: row; text-align: left; align-items: center; gap: 0.55rem; padding: 0.50rem 0.70rem; border-bottom: none; border-left: 2px solid rgba(196,155,56,0.52); }
    .home-feature-card:hover { border-left-color: #e0b84f; }
    .home-feature-icon  { margin-bottom: 0; font-size: 1rem; flex-shrink: 0; }
}

/* ═══════════════════════════════════════════════════
   SHOOTING STARS
   ═══════════════════════════════════════════════════ */
.shooting-stars-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.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: clamp(280px, 42vh, 480px);
}
.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; }
}
