:root {
    --bg: #07090a;
    --panel: rgba(9, 12, 12, .88);
    --panel-soft: rgba(13, 16, 16, .78);
    --line: #7d5624;
    --line-soft: rgba(181, 126, 54, .34);
    --gold: #c99a51;
    --gold-soft: #f0d59b;
    --red: #8f1711;
    --red-dark: #3b0806;
    --green: #3fc35b;
    --text: #ded6c8;
    --muted: #a99c8c;
    --shadow: 0 20px 55px rgba(0, 0, 0, .55);
    --content: min(1180px, calc(100% - 52px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 50% 0, rgba(197, 106, 33, .12), transparent 38rem),
        linear-gradient(180deg, #07090a 0%, #0b0d0d 45%, #050607 100%);
    font-family: "Cinzel", Georgia, serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, black, transparent 80%);
    z-index: 20;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.page-frame {
    width: min(1440px, calc(100% - 44px));
    margin: 20px auto 34px;
    border: 1px solid rgba(195, 143, 70, .55);
    border-radius: 18px;
    overflow: hidden;
    background: #07090a;
    box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 225, 160, .05);
}

.page-frame::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(38, 97, 150, .16), transparent 18rem),
        radial-gradient(circle at 88% 22%, rgba(145, 29, 17, .15), transparent 22rem);
    z-index: -1;
}

.site-header {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 260px 1fr 160px;
    align-items: center;
    min-height: 78px;
    padding: 0 26px;
    border-bottom: 1px solid var(--line-soft);
    background:
        linear-gradient(180deg, rgba(14, 16, 16, .98), rgba(5, 7, 7, .93));
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(238, 190, 106, .75), transparent);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .72));
}

.main-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.5vw, 42px);
}

.main-nav a {
    position: relative;
    padding: 30px 0 28px;
    color: #d6cbbb;
    font-size: .86rem;
    transition: color .2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #c82018;
    transform: translateX(-50%);
    transition: width .2s ease;
}

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

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

.header-online {
    position: relative;
    justify-self: end;
    min-width: 150px;
    min-height: 46px;
    display: grid;
    align-content: center;
    justify-items: end;
    padding: 7px 14px;
    border: 1px solid rgba(160, 31, 24, .75);
    background:
        radial-gradient(circle at 20% 50%, rgba(201, 154, 81, .2), transparent 42%),
        linear-gradient(90deg, rgba(77, 11, 8, .74), rgba(12, 9, 8, .86));
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .48), 0 0 18px rgba(160, 31, 24, .12);
    overflow: hidden;
}

.header-online span {
    color: #bcae9c;
    font-family: "Cinzel", Georgia, serif;
    font-size: .62rem;
    letter-spacing: .16em;
    line-height: 1;
    text-transform: uppercase;
}

.header-online strong {
    position: relative;
    margin-top: 5px;
    color: var(--gold-soft);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1;
}

.header-online strong::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 11px rgba(63, 195, 91, .85);
    vertical-align: 1px;
}

.header-online::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0;
    background: linear-gradient(120deg, transparent 15%, rgba(255, 226, 148, .16), transparent 52%);
    transform: translateX(-130%);
    animation: badgeSweep 5.5s ease-in-out infinite;
}

@keyframes badgeSweep {
    0%, 66% { transform: translateX(-130%); }
    100% { transform: translateX(130%); }
}

.menu-toggle {
    display: none;
}

.hero {
    position: relative;
    min-height: 405px;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background: url("../img/launcher-bg.webp") center top / cover no-repeat;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 6, 7, .92) 0%, rgba(4, 6, 7, .58) 34%, rgba(4, 6, 7, .08) 68%, rgba(4, 6, 7, .42) 100%),
        linear-gradient(180deg, transparent 62%, rgba(7, 9, 10, .95) 100%);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    background: linear-gradient(180deg, transparent, #07090a);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(620px, calc(100% - 60px));
    padding: 72px 0 34px 92px;
}

.season-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 7px 11px;
    border: 1px solid rgba(199, 154, 81, .42);
    background: rgba(3, 6, 6, .56);
    color: #cdbb91;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.season-tag b {
    color: var(--gold-soft);
    font-weight: 700;
}

.hero h1 {
    margin: 0;
    color: #f1d89c;
    font-size: clamp(2.85rem, 4.25vw, 4.25rem);
    line-height: .98;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-shadow: 0 3px 0 #000, 0 0 24px rgba(217, 164, 75, .2);
}

.hero p {
    width: min(390px, 100%);
    margin: 18px 0 21px;
    color: #d7cfc3;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.22rem;
    line-height: 1.38;
}

.hero p strong {
    color: var(--gold-soft);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.newsletter button,
.panel-link {
    display: inline-grid;
    align-content: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    border: 1px solid #d29a45;
    background: linear-gradient(180deg, #a51d15, #4a0906);
    box-shadow:
        inset 0 0 0 2px rgba(0, 0, 0, .54),
        inset 0 0 16px rgba(255, 205, 104, .18);
    color: #ffe0a0;
    font-weight: 700;
    letter-spacing: .05em;
    text-align: center;
    text-transform: uppercase;
    transition: transform .2s ease, filter .2s ease;
}

.btn-secondary {
    min-width: 190px;
    background: rgba(8, 11, 11, .76);
}

.btn-primary span,
.btn-secondary span {
    display: block;
    font-size: .88rem;
}

.btn-primary small,
.btn-secondary small {
    display: block;
    margin-top: 2px;
    color: #d6bd82;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: .84rem;
    font-weight: 600;
    text-transform: none;
}

.btn-primary:hover,
.btn-secondary:hover,
.newsletter button:hover,
.panel-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.online-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    padding: 10px 18px;
    border: 1px solid rgba(195, 143, 70, .48);
    background: rgba(4, 7, 7, .72);
    color: #d8c6a1;
    text-transform: uppercase;
}

.online-pill i,
.server-list i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 11px rgba(63, 195, 91, .8);
}

.online-pill strong {
    color: var(--gold-soft);
}

.online-pill span {
    font-size: .78rem;
}

.feature-kicker {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 26px;
    width: var(--content);
    margin: 28px auto 22px;
}

.feature-kicker span {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 154, 81, .58), transparent);
}

.feature-kicker b {
    color: var(--gold-soft);
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(201, 154, 81, .22);
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    width: var(--content);
    margin: 0 auto 28px;
    position: relative;
    z-index: 3;
}

.command-grid,
.content-grid,
.ranking-grid {
    display: grid;
    width: var(--content);
    margin: 0 auto 14px;
    gap: 12px;
}

.command-grid {
    grid-template-columns: 1.08fr .92fr 1.25fr;
    margin-top: 18px;
}

.content-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
}

.ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-panel,
.social-panel,
.stats-panel {
    min-height: 245px;
}

.login-form {
    display: grid;
    gap: 11px;
}

.login-form label {
    display: grid;
    gap: 5px;
}

.login-form span {
    color: #c8b47f;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: .9rem;
}

.login-form input,
.newsletter input {
    outline: none;
}

.login-form input {
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(198, 146, 69, .46);
    color: #e8dfd1;
    background: rgba(0, 0, 0, .42);
}

.login-form input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 154, 81, .12);
}

.login-form button {
    min-height: 42px;
    border: 1px solid #d29a45;
    color: #ffe0a0;
    background: linear-gradient(180deg, #a51d15, #4a0906);
    font-family: "Cinzel", Georgia, serif;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.login-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    font-size: .76rem;
}

.login-actions a,
.social-grid a span {
    color: #b8ab98;
    font-family: "Cormorant Garamond", Georgia, serif;
}

.login-actions a:hover {
    color: var(--gold-soft);
}

.social-grid {
    display: grid;
    gap: 12px;
}

.social-grid a {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    column-gap: 13px;
    min-height: 64px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(0, 0, 0, .3);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}

.social-grid a::before {
    content: "";
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .34);
}

.social-grid a.discord {
    border-color: rgba(88, 101, 242, .46);
    background: linear-gradient(90deg, rgba(88, 101, 242, .22), rgba(0, 0, 0, .3) 58%);
}

.social-grid a.discord::before {
    content: "D";
    background: linear-gradient(135deg, #7289da, #5865f2);
}

.social-grid a.facebook {
    border-color: rgba(24, 119, 242, .48);
    background: linear-gradient(90deg, rgba(24, 119, 242, .2), rgba(0, 0, 0, .3) 58%);
}

.social-grid a.facebook::before {
    content: "f";
    background: linear-gradient(135deg, #1877f2, #0d47a1);
    font-size: 1.45rem;
}

.social-grid a.whatsapp {
    border-color: rgba(37, 211, 102, .48);
    background: linear-gradient(90deg, rgba(37, 211, 102, .18), rgba(0, 0, 0, .3) 58%);
}

.social-grid a.whatsapp::before {
    content: "W";
    background: linear-gradient(135deg, #25d366, #128c4a);
}

.social-grid a.youtube {
    border-color: rgba(255, 0, 0, .5);
    background: linear-gradient(90deg, rgba(255, 0, 0, .18), rgba(0, 0, 0, .3) 58%);
}

.social-grid a.youtube::before {
    content: "▶";
    background: linear-gradient(135deg, #ff3434, #c40000);
    font-size: 1rem;
}

.social-grid a b {
    color: var(--gold-soft);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .8rem;
}

.social-grid a:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    border-color: rgba(240, 213, 155, .72);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55), 0 10px 24px rgba(0, 0, 0, .28);
}

/* ============== STATS GRID — high impact ============== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-cell {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    min-height: 92px;
    padding: 14px 16px 14px 14px;
    border: 1px solid rgba(198, 146, 69, .35);
    background:
        radial-gradient(circle at 100% 0%, rgba(201, 154, 81, .18), transparent 55%),
        linear-gradient(135deg, rgba(11, 13, 14, .92), rgba(4, 6, 7, .96));
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, .55),
        0 6px 18px rgba(0, 0, 0, .35);
    overflow: hidden;
    transition: transform .28s cubic-bezier(.16, 1, .3, 1), border-color .28s ease, box-shadow .28s ease;
}

.stat-cell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 213, 155, .65), transparent);
    opacity: .85;
}

.stat-cell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 25%, rgba(255, 226, 148, .14), transparent 60%);
    transform: translateX(-130%);
    transition: transform .9s ease;
}

.stat-cell:hover {
    transform: translateY(-3px);
    border-color: rgba(240, 213, 155, .65);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, .55),
        0 14px 30px rgba(0, 0, 0, .45),
        0 0 22px rgba(201, 154, 81, .22);
}
.stat-cell:hover::after {
    transform: translateX(130%);
}

.stat-icon {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--gold-soft);
    font-size: 1.08rem;
    background:
        radial-gradient(circle at 30% 30%, rgba(240, 213, 155, .35), rgba(0, 0, 0, 0) 60%),
        rgba(0, 0, 0, .45);
    box-shadow:
        inset 0 0 0 1px rgba(240, 213, 155, .35),
        0 0 18px rgba(201, 154, 81, .12);
    transition: transform .3s ease, box-shadow .3s ease, color .3s ease;
}

.stat-cell:hover .stat-icon {
    transform: scale(1.08) rotate(-4deg);
    color: #fff5d8;
    box-shadow:
        inset 0 0 0 1px rgba(240, 213, 155, .6),
        0 0 24px rgba(201, 154, 81, .35);
}

.stat-cell strong {
    grid-column: 2;
    align-self: end;
    font-family: "Cinzel", Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
    background: linear-gradient(180deg, #fff7d8 0%, #f0d59b 38%, #c99a51 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 22px rgba(240, 213, 155, .12);
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .8));
}

.stat-cell strong em {
    font-style: normal;
    font-size: 1.15rem;
    color: #c99a51;
    -webkit-text-fill-color: initial;
    margin-left: 1px;
    opacity: .9;
}

.stat-cell span {
    grid-column: 2;
    align-self: start;
    color: #b8ab98;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: .92rem;
    line-height: 1.1;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Variants */
.stat-online .stat-icon {
    color: #9cf19f;
    background:
        radial-gradient(circle at 30% 30%, rgba(115, 255, 120, .4), rgba(0, 0, 0, 0) 60%),
        rgba(0, 0, 0, .45);
    box-shadow:
        inset 0 0 0 1px rgba(115, 255, 120, .55),
        0 0 22px rgba(63, 195, 91, .35);
    animation: stat-pulse-green 2.6s ease-in-out infinite;
}

.stat-online strong {
    background: linear-gradient(180deg, #d9ffdc 0%, #9cf19f 50%, #3fc35b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-online::before {
    background: linear-gradient(90deg, transparent, rgba(115, 255, 120, .65), transparent);
}

.stat-active24 .stat-icon {
    color: #ffd277;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 210, 119, .35), rgba(0, 0, 0, 0) 60%),
        rgba(0, 0, 0, .45);
    box-shadow:
        inset 0 0 0 1px rgba(255, 210, 119, .55),
        0 0 22px rgba(217, 164, 75, .25);
}

.stat-active24 strong {
    background: linear-gradient(180deg, #fff7d8 0%, #ffd277 50%, #b8851d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-active24::before {
    background: linear-gradient(90deg, transparent, rgba(255, 210, 119, .65), transparent);
}

.stat-guilds .stat-icon {
    color: #f0a4a4;
    background:
        radial-gradient(circle at 30% 30%, rgba(240, 164, 164, .35), rgba(0, 0, 0, 0) 60%),
        rgba(0, 0, 0, .45);
    box-shadow:
        inset 0 0 0 1px rgba(240, 164, 164, .45),
        0 0 18px rgba(168, 32, 26, .18);
}

.stat-uptime .stat-icon {
    color: #ffe0a0;
    box-shadow:
        inset 0 0 0 1px rgba(255, 224, 160, .55),
        0 0 18px rgba(255, 205, 104, .25);
}

.stat-newtoday .stat-icon {
    color: #c1a4f0;
    background:
        radial-gradient(circle at 30% 30%, rgba(193, 164, 240, .4), rgba(0, 0, 0, 0) 60%),
        rgba(0, 0, 0, .45);
    box-shadow:
        inset 0 0 0 1px rgba(193, 164, 240, .55),
        0 0 22px rgba(142, 92, 226, .3);
    animation: stat-pulse-violet 3.4s ease-in-out infinite;
}

.stat-newtoday strong {
    background: linear-gradient(180deg, #f0e8ff 0%, #c1a4f0 50%, #7a4fe6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-newtoday::before {
    background: linear-gradient(90deg, transparent, rgba(193, 164, 240, .65), transparent);
}

@keyframes stat-pulse-violet {
    0%, 100% {
        box-shadow:
            inset 0 0 0 1px rgba(193, 164, 240, .55),
            0 0 22px rgba(142, 92, 226, .3);
    }
    50% {
        box-shadow:
            inset 0 0 0 1px rgba(193, 164, 240, .85),
            0 0 30px rgba(142, 92, 226, .55);
    }
}

@keyframes stat-pulse-green {
    0%, 100% {
        box-shadow:
            inset 0 0 0 1px rgba(115, 255, 120, .55),
            0 0 22px rgba(63, 195, 91, .35);
    }
    50% {
        box-shadow:
            inset 0 0 0 1px rgba(115, 255, 120, .85),
            0 0 30px rgba(63, 195, 91, .65);
    }
}

/* "EN VIVO" badge in panel title */
.live-pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border: 1px solid rgba(63, 195, 91, .45);
    background: rgba(63, 195, 91, .08);
    color: #9cf19f;
    font-family: "Cinzel", Georgia, serif;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .14em;
    border-radius: 999px;
}

.live-pulse i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3fc35b;
    box-shadow: 0 0 8px rgba(63, 195, 91, .85);
    animation: live-blink 1.6s ease-in-out infinite;
}

@keyframes live-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .55; transform: scale(.85); }
}

/* Legacy fallback en caso de marcado viejo */
.stats-grid > div:not(.stat-cell) {
    min-height: 78px;
    display: grid;
    place-items: center;
    padding: 10px;
    border: 1px solid rgba(198, 146, 69, .32);
    background:
        radial-gradient(circle at 50% 0, rgba(201, 154, 81, .13), transparent 65%),
        rgba(0, 0, 0, .3);
    text-align: center;
}
.stats-grid > div:not(.stat-cell) strong { color: var(--gold-soft); font-size: 1.55rem; }
.stats-grid > div:not(.stat-cell) span { color: #b8ab98; font-family: "Cormorant Garamond", Georgia, serif; }

.feature-strip article,
.panel,
.steps-grid article {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .55);
}

.feature-strip article {
    display: block;
    min-height: 306px;
    border-radius: 8px;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.feature-strip article:nth-child(1) {
    background: #070909;
}

.feature-strip article:nth-child(2) {
    background: #070909;
}

.feature-strip article:nth-child(3) {
    background: #070909;
}

.feature-strip article:nth-child(4) {
    background: #070909;
}

.feature-strip article::after,
.panel::after,
.steps-grid article::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 226, 154, .12), transparent 18%),
        linear-gradient(315deg, rgba(255, 226, 154, .08), transparent 18%);
    opacity: .7;
}

.feature-strip article::before,
.panel::before,
.steps-grid article::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(225, 173, 91, .12);
    pointer-events: none;
    z-index: 3;
}

.feature-strip img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 306px;
    object-fit: cover;
    object-position: center;
    filter: brightness(.68) saturate(.98);
    transition: transform .35s ease, filter .35s ease;
}

.feature-strip div {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 96px 18px 22px;
    background: linear-gradient(180deg, transparent, rgba(4, 6, 7, .84) 42%, rgba(4, 6, 7, .98) 100%);
}

.feature-strip article:hover {
    transform: translateY(-5px);
    border-color: rgba(240, 213, 155, .54);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .34);
}

.feature-strip article:hover img {
    transform: scale(1.045);
    filter: brightness(.78) saturate(1.04);
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 24px;
    margin-bottom: 8px;
    border: 1px solid rgba(213, 164, 86, .48);
    color: var(--gold-soft);
    background: rgba(0, 0, 0, .45);
    font-size: .58rem;
    letter-spacing: .08em;
}

.feature-strip h2,
.panel-title h2,
.steps-grid h3,
.site-footer h2 {
    margin: 0;
    color: var(--gold-soft);
    font-size: .92rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.feature-strip p {
    margin: 7px 0 0;
    color: #c6baaa;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: .98rem;
    line-height: 1.22;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.25fr .85fr .9fr .95fr;
    gap: 12px;
    width: var(--content);
    margin: 0 auto;
}

.panel {
    min-height: 236px;
    padding: 16px;
}

.news-panel {
    grid-column: span 1;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(181, 126, 54, .28);
}

.panel-title a {
    color: var(--gold);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-list,
.event-list {
    display: grid;
    gap: 10px;
}

.featured-news {
    display: block;
    position: relative;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid rgba(181, 126, 54, .34);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .82) 78%),
        url("../img/launcher-bg.webp") center 50% / cover no-repeat,
        #070909;
}

.featured-news img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: rgba(0, 0, 0, .32);
    filter: brightness(.76) saturate(.98);
}

.featured-news span {
    display: block;
    padding: 12px 14px 14px;
    background: rgba(0, 0, 0, .38);
}

.featured-news b,
.featured-news small {
    display: block;
}

.featured-news b {
    color: var(--gold-soft);
    font-size: .86rem;
}

.featured-news small {
    color: #c3b7a6;
    margin-top: 3px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: .9rem;
}

.news-list a,
.event-list a {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 66px;
    color: #d8d0c4;
}

.news-list a::before,
.event-list a::before {
    content: none;
}

.event-list a {
    grid-template-columns: 64px 1fr 62px;
}

.event-list a::before {
    content: none;
}

.news-list img,
.event-list img {
    display: block;
    width: 70px;
    height: 52px;
    object-fit: cover;
    border: 1px solid rgba(181, 126, 54, .45);
    background: rgba(0, 0, 0, .34);
    filter: brightness(.78) saturate(.96);
}

.event-list img {
    width: 64px;
    height: 50px;
}

.news-list b,
.event-list b {
    display: block;
    color: #e8c889;
    font-size: .78rem;
}

.news-list small,
.event-list small {
    display: block;
    margin-top: 2px;
    color: #a99d8f;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: .88rem;
    line-height: 1.18;
}

.news-list time,
.event-list strong {
    color: #c77b37;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: .75rem;
    text-align: right;
}

/* ============== EVENTS — high impact ============== */
.events-panel .event-list {
    gap: 12px;
}

.events-panel .event-list a {
    position: relative;
    display: grid;
    grid-template-columns: 78px 1fr auto;
    column-gap: 14px;
    align-items: center;
    min-height: 78px;
    padding: 8px 10px 8px 8px;
    border: 1px solid rgba(125, 86, 36, .35);
    background: linear-gradient(135deg, rgba(11, 13, 14, .72), rgba(4, 6, 7, .9));
    overflow: hidden;
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), border-color .25s ease, box-shadow .25s ease;
}

.events-panel .event-list a:hover {
    transform: translateX(2px);
    border-color: rgba(240, 213, 155, .55);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
}

.events-panel .event-list a img {
    width: 78px;
    height: 60px;
    object-fit: cover;
    border: 1px solid rgba(181, 126, 54, .55);
    filter: brightness(.78) saturate(1);
    transition: filter .3s ease, transform .3s ease;
}

.events-panel .event-list a:hover img {
    filter: brightness(1) saturate(1.1);
    transform: scale(1.04);
}

/* Tag de tipo (PvP/Drop/etc) flotante en la esquina superior izquierda */
.event-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    padding: 2px 7px;
    font-family: "Cinzel", Georgia, serif;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.event-pvp     .event-tag { background: linear-gradient(180deg, rgba(168, 32, 26, .92), rgba(80, 8, 6, .96)); border-color: #d22; }
.event-drop    .event-tag { background: linear-gradient(180deg, rgba(201, 154, 81, .92), rgba(110, 75, 25, .96)); border-color: #e2c06a; color: #fff7d8; }
.event-fishing .event-tag { background: linear-gradient(180deg, rgba(38, 97, 150, .92), rgba(14, 40, 70, .96)); border-color: #4a8fce; }
.event-boss    .event-tag { background: linear-gradient(180deg, rgba(122, 28, 200, .92), rgba(50, 9, 90, .96)); border-color: #b58dff; }
.event-race    .event-tag { background: linear-gradient(180deg, rgba(63, 195, 91, .92), rgba(20, 80, 38, .96)); border-color: #6cf188; color: #f0fff5; }

.event-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}

.event-body b {
    color: #f0d59b !important;
    font-family: "Cinzel", Georgia, serif !important;
    font-size: .82rem !important;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.15;
    transition: color .2s ease, text-shadow .2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.events-panel .event-list a:hover .event-body b {
    color: #fff7d8 !important;
    text-shadow: 0 0 12px rgba(240, 213, 155, .35);
}

.event-body small {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: #a99d8f !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: .88rem !important;
    margin: 0 !important;
}

.event-body small i {
    color: #c99a51;
    font-size: .78rem;
}

/* Countdown badge */
.event-cd {
    display: grid !important;
    place-items: center;
    text-align: center !important;
    min-width: 70px;
    padding: 6px 10px !important;
    border: 1px solid rgba(168, 32, 26, .55);
    background: linear-gradient(180deg, rgba(143, 23, 17, .5), rgba(50, 9, 6, .8));
    color: #ffe0a0 !important;
    font-family: "Cinzel", Georgia, serif !important;
    font-size: .82rem !important;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55), 0 4px 12px rgba(143, 23, 17, .25);
}

.event-cd em {
    display: block;
    margin-bottom: 3px;
    color: #c8b47f;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-style: normal;
    font-size: .65rem;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .8;
}

/* Próximo evento (no activo) — destacado en cyan */
.event-imminent:not(.event-live) {
    border-color: rgba(56, 189, 248, .55) !important;
    background:
        linear-gradient(135deg, rgba(8, 24, 36, .85), rgba(8, 6, 7, .95)) !important;
    box-shadow:
        inset 0 0 0 1px rgba(56, 189, 248, .25),
        0 0 22px rgba(56, 189, 248, .15) !important;
}

.event-imminent:not(.event-live)::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, .85), transparent);
    animation: imminent-glow-cyan 2.2s ease-in-out infinite;
}

.event-imminent:not(.event-live) .event-cd {
    border-color: rgba(56, 189, 248, .65);
    background: linear-gradient(180deg, rgba(14, 116, 144, .85), rgba(7, 50, 73, .96));
    color: #e0f7ff !important;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, .45),
        0 4px 14px rgba(14, 116, 144, .45),
        0 0 18px rgba(56, 189, 248, .22);
}
.event-imminent:not(.event-live) .event-cd em {
    color: #a5e9ff;
}

.event-imminent:not(.event-live) .event-tag {
    box-shadow: 0 0 12px rgba(56, 189, 248, .35);
}

@keyframes imminent-glow-cyan {
    0%, 100% { opacity: .55; }
    50%      { opacity: 1; }
}

/* Evento ACTIVO (corriendo ahora) — verde + badge ON */
.event-live {
    border-color: rgba(63, 195, 91, .7) !important;
    background:
        linear-gradient(135deg, rgba(8, 38, 18, .9), rgba(6, 18, 10, .96)) !important;
    box-shadow:
        inset 0 0 0 1px rgba(63, 195, 91, .35),
        0 0 26px rgba(63, 195, 91, .25) !important;
}

.event-live::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(115, 255, 120, .95), transparent);
    animation: live-edge-glow 1.8s ease-in-out infinite;
}

/* Countdown verde con "ON" pulsante (sin badge externo, evita overlap) */
.event-live .event-cd {
    border-color: rgba(115, 255, 120, .65) !important;
    background: linear-gradient(180deg, rgba(34, 134, 56, .9), rgba(8, 50, 22, .96)) !important;
    color: #d9ffdc !important;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, .45),
        0 4px 14px rgba(63, 195, 91, .55),
        0 0 18px rgba(115, 255, 120, .3) !important;
    animation: live-cd-glow 2s ease-in-out infinite;
}

.event-live .event-cd em {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #c9ffcf !important;
    font-weight: 700;
    text-transform: uppercase;
}

.event-live .event-cd em::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #73ff78;
    box-shadow: 0 0 10px rgba(115, 255, 120, .9);
    animation: live-dot 1.4s ease-in-out infinite;
}

.event-live .event-tag {
    box-shadow: 0 0 14px rgba(115, 255, 120, .5);
}

@keyframes live-edge-glow {
    0%, 100% { opacity: .65; }
    50%      { opacity: 1; }
}
@keyframes live-cd-glow {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.15); }
}
@keyframes live-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .55; transform: scale(.85); }
}

.server-list {
    display: grid;
    gap: 10px;
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
}

.status-orb {
    display: grid;
    place-items: center;
    gap: 7px;
    min-height: 82px;
    margin-bottom: 10px;
    border: 1px solid rgba(181, 126, 54, .24);
    background:
        radial-gradient(circle at 50% 50%, rgba(63, 195, 91, .16), transparent 52%),
        rgba(0, 0, 0, .24);
}

.status-orb span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(115, 255, 120, .6);
    background: radial-gradient(circle, #61f171, #238738 55%, rgba(35, 135, 56, .18) 56%);
    box-shadow: 0 0 26px rgba(63, 195, 91, .52);
}

.status-orb strong {
    color: #9cf19f;
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.server-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 28px;
    border-bottom: 1px solid rgba(181, 126, 54, .12);
}

.server-list dt {
    color: #cdbf9f;
}

.server-list dd {
    margin: 0;
    color: var(--gold-soft);
}

/* ============== RANKINGS — high impact ============== */
.ranking-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    counter-reset: ranking;
    list-style: none;
}

.ranking-head {
    display: grid;
    grid-template-columns: 36px 1fr 56px 90px;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
    padding: 0 12px;
    color: #927f60;
    font-family: "Cinzel", Georgia, serif;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ranking-head span:nth-child(2) { text-align: left; }
.ranking-head span:nth-child(3) { text-align: center; }
.ranking-head span:nth-child(4) { text-align: right; }

.ranking-list li {
    position: relative;
    display: grid;
    grid-template-columns: 36px 1fr 56px 90px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(125, 86, 36, .25);
    background: linear-gradient(135deg, rgba(11, 13, 14, .55), rgba(4, 6, 7, .85));
    color: #d8cfc2;
    font-family: "Cinzel", Georgia, serif;
    font-size: .82rem;
    transition: transform .22s cubic-bezier(.16, 1, .3, 1), border-color .22s ease, box-shadow .22s ease;
    overflow: hidden;
}

.ranking-list li:hover {
    transform: translateX(2px);
    border-color: rgba(240, 213, 155, .55);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .4), 0 0 18px rgba(201, 154, 81, .12);
}

/* Posición — círculo con número (puestos 4+) */
.ranking-list li::before {
    counter-increment: ranking;
    content: counter(ranking);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(125, 86, 36, .55);
    background:
        radial-gradient(circle at 35% 28%, rgba(240, 213, 155, .12), transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(20, 14, 8, .98), rgba(0, 0, 0, .98));
    color: #c8b47f;
    font-family: "Cinzel", Georgia, serif;
    font-size: .82rem;
    font-weight: 700;
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 216, .15),
        inset 0 -1px 0 rgba(0, 0, 0, .8),
        0 2px 6px rgba(0, 0, 0, .45);
}

/* ============== TOP 3 — Medallas con relieve ============== */
/* Estructura: ::before = medalla (disco), ::after = ícono perfectamente centrado */

/* TOP 1 — ORO con corona */
.ranking-list li:nth-child(1)::before {
    content: "";
    width: 36px;
    height: 36px;
    border: 2px solid #fff5cf;
    background:
        radial-gradient(circle at 32% 26%, #fff8da 0%, #f9e3a2 22%, #d9a542 58%, #a26f1f 90%, #5a3c0f 100%);
    box-shadow:
        inset 0 2px 2px rgba(255, 248, 218, .85),
        inset 0 -3px 6px rgba(80, 50, 10, .55),
        inset 0 0 0 1px rgba(255, 247, 216, .35),
        0 4px 14px rgba(0, 0, 0, .55),
        0 0 22px rgba(240, 213, 155, .55);
    animation: medal-shine-gold 5s ease-in-out infinite;
}
.ranking-list li:nth-child(1)::after {
    content: "\f521"; /* fa-crown */
    position: absolute;
    left: 30px; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .9rem;
    color: #5a3c0f;
    text-shadow:
        0 1px 0 rgba(255, 248, 218, .6),
        0 -1px 1px rgba(80, 50, 10, .8);
    pointer-events: none;
}

/* TOP 2 — PLATA con estrella */
.ranking-list li:nth-child(2)::before {
    content: "";
    width: 34px;
    height: 34px;
    border: 2px solid #f5f5f5;
    background:
        radial-gradient(circle at 32% 26%, #ffffff 0%, #e8e8e8 24%, #b4b4b4 56%, #6e6e6e 88%, #2e2e2e 100%);
    box-shadow:
        inset 0 2px 2px rgba(255, 255, 255, .85),
        inset 0 -3px 6px rgba(40, 40, 40, .6),
        inset 0 0 0 1px rgba(255, 255, 255, .35),
        0 4px 12px rgba(0, 0, 0, .5),
        0 0 16px rgba(220, 220, 220, .4);
}
.ranking-list li:nth-child(2)::after {
    content: "\f005"; /* fa-star */
    position: absolute;
    left: 29px; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .82rem;
    color: #2a2a2a;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, .55),
        0 -1px 1px rgba(0, 0, 0, .55);
    pointer-events: none;
}

/* TOP 3 — BRONCE con escudo */
.ranking-list li:nth-child(3)::before {
    content: "";
    width: 34px;
    height: 34px;
    border: 2px solid #fcd1ae;
    background:
        radial-gradient(circle at 32% 26%, #ffe1c0 0%, #e1a97c 24%, #b3753f 58%, #74441a 90%, #3a1c08 100%);
    box-shadow:
        inset 0 2px 2px rgba(255, 225, 192, .8),
        inset 0 -3px 6px rgba(58, 28, 8, .55),
        inset 0 0 0 1px rgba(255, 225, 192, .3),
        0 4px 12px rgba(0, 0, 0, .5),
        0 0 16px rgba(179, 117, 63, .4);
}
.ranking-list li:nth-child(3)::after {
    content: "\f132"; /* fa-shield-halved alt: f132 fa-shield (clásica) */
    position: absolute;
    left: 29px; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .82rem;
    color: #3a1c08;
    text-shadow:
        0 1px 0 rgba(255, 225, 192, .5),
        0 -1px 1px rgba(0, 0, 0, .5);
    pointer-events: none;
}

/* Halo brillante recorriendo la medalla de oro */
@keyframes medal-shine-gold {
    0%, 100% {
        box-shadow:
            inset 0 2px 2px rgba(255, 248, 218, .85),
            inset 0 -3px 6px rgba(80, 50, 10, .55),
            inset 0 0 0 1px rgba(255, 247, 216, .35),
            0 4px 14px rgba(0, 0, 0, .55),
            0 0 22px rgba(240, 213, 155, .55);
    }
    50% {
        box-shadow:
            inset 0 2px 2px rgba(255, 248, 218, .95),
            inset 0 -3px 6px rgba(80, 50, 10, .55),
            inset 0 0 0 1px rgba(255, 247, 216, .55),
            0 4px 14px rgba(0, 0, 0, .55),
            0 0 32px rgba(240, 213, 155, .85);
    }
}

/* Top 1 con highlight de fila */
.ranking-list li:nth-child(1) {
    border-color: rgba(240, 213, 155, .55);
    background:
        linear-gradient(90deg, rgba(201, 154, 81, .14), transparent 60%),
        linear-gradient(135deg, rgba(15, 14, 11, .85), rgba(4, 6, 7, .92));
    box-shadow: inset 0 0 0 1px rgba(240, 213, 155, .15);
}

/* Nombre + ícono de raza al lado */
.ranking-list .rank-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #f0d59b;
    font-weight: 600;
    letter-spacing: .03em;
}
.ranking-list .rank-name > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}

/* Icono de raza (job) */
.rank-job {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(125, 86, 36, .55);
    background: rgba(0, 0, 0, .55);
    object-fit: cover;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .4);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.ranking-list li:hover .rank-job {
    transform: scale(1.08);
    border-color: rgba(240, 213, 155, .75);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), 0 0 14px rgba(201, 154, 81, .35);
}
.ranking-list li:nth-child(1) .rank-job {
    border-color: rgba(240, 213, 155, .85);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), 0 0 14px rgba(240, 213, 155, .55);
}

/* Icono de gremio (escudo) — espejo del rank-job pero con FontAwesome */
.rank-guild-icon {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(125, 86, 36, .55);
    background:
        radial-gradient(circle at 35% 30%, rgba(240, 213, 155, .15), rgba(0, 0, 0, 0) 60%),
        rgba(0, 0, 0, .55);
    color: var(--gold-soft);
    font-size: .82rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .4);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.ranking-list li:hover .rank-guild-icon {
    transform: scale(1.08);
    border-color: rgba(240, 213, 155, .75);
    color: #fff7d8;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), 0 0 14px rgba(201, 154, 81, .35);
}
.ranking-list li:nth-child(1) .rank-guild-icon {
    border-color: rgba(240, 213, 155, .85);
    color: #fff7d8;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), 0 0 14px rgba(240, 213, 155, .55);
}

.ranking-list li:nth-child(1) .rank-name {
    color: #fff7d8;
    text-shadow: 0 0 12px rgba(240, 213, 155, .35);
}

/* Bandera del reino */
.rank-empire {
    text-align: right;
    font-style: normal;
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    overflow: visible !important;
}

.rank-empire img {
    width: 36px;
    height: 24px;
    object-fit: cover;
    border: 1px solid rgba(125, 86, 36, .55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .35);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.ranking-list li:hover .rank-empire img {
    transform: scale(1.06);
    border-color: rgba(240, 213, 155, .75);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .5), 0 0 14px rgba(201, 154, 81, .25);
}
.ranking-list li:nth-child(1) .rank-empire img {
    border-color: rgba(240, 213, 155, .85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .5), 0 0 14px rgba(240, 213, 155, .55);
}

.rank-empire-fallback {
    color: var(--muted);
    font-family: "Cormorant Garamond", Georgia, serif;
}

/* Fallback para rankings sin .rank-name (ej: gremios) */
.ranking-list li > span:not(.rank-name):not(.rank-empire-fallback) {
    color: #f0d59b;
    font-weight: 600;
    letter-spacing: .03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ranking-list li:nth-child(1) > span:not(.rank-name):not(.rank-empire-fallback) {
    color: #fff7d8;
    text-shadow: 0 0 12px rgba(240, 213, 155, .35);
}

/* Nivel */
.ranking-list b {
    text-align: center;
    color: #ffe0a0;
    font-family: "Cinzel", Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    border: 1px solid rgba(125, 86, 36, .45);
    background: rgba(0, 0, 0, .55);
    border-radius: 3px;
}

/* Empire / puntos */
.ranking-list em {
    text-align: right;
    color: #c8b47f;
    font-style: normal;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: .92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empire colored badges (se aplica si el em tiene texto Shinsoo/Chunjo/Jinno) */
.ranking-list em[data-empire="1"],
.ranking-list em.empire-shinsoo { color: #f0d59b; }
.ranking-list em[data-empire="2"],
.ranking-list em.empire-chunjo  { color: #ff9a92; }
.ranking-list em[data-empire="3"],
.ranking-list em.empire-jinno   { color: #9cc8ff; }

.panel-link {
    width: 100%;
    min-height: 34px;
    margin-top: 16px;
    font-size: .68rem;
    background: rgba(5, 8, 8, .86);
}

.steps-panel {
    width: var(--content);
    margin: 14px auto 24px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.steps-grid article {
    min-height: 94px;
    padding: 18px 18px 18px 78px;
}

.steps-grid strong {
    position: absolute;
    left: 20px;
    top: 19px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gold);
    color: var(--gold-soft);
    font-size: 1.5rem;
}

.steps-grid p {
    margin: 7px 0 0;
    color: #b9ad9d;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1rem;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) .55fr .65fr minmax(280px, 1fr);
    gap: 34px;
    padding: 26px 58px;
    border-top: 1px solid rgba(181, 126, 54, .34);
    background: linear-gradient(180deg, rgba(9, 12, 12, .92), rgba(4, 6, 6, .96));
}

.footer-brand img {
    width: 210px;
    height: auto;
}

.footer-brand p,
.newsletter p,
.footer-nav a,
.copyright,
.newsletter input {
    font-family: "Cormorant Garamond", Georgia, serif;
}

.footer-brand p {
    max-width: 315px;
    margin: 10px 0 0;
    color: #b9ad9d;
    line-height: 1.45;
}

.footer-nav {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-nav a {
    color: #bdb1a0;
}

.newsletter p {
    margin: 8px 0 12px;
    color: #b9ad9d;
}

.newsletter div {
    display: flex;
}

.newsletter input {
    width: 100%;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid rgba(181, 126, 54, .42);
    border-right: 0;
    color: #e8dfd1;
    background: rgba(0, 0, 0, .35);
}

.newsletter button {
    min-height: 40px;
    padding: 0 17px;
    font-size: .7rem;
}

.copyright {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 58px;
    border-top: 1px solid rgba(181, 126, 54, .18);
    color: #82786b;
    font-size: .82rem;
}

.copyright p {
    margin: 0;
}

/* Legacy PHP page compatibility */
/* ============== PAGE HERO (banner pequeño para páginas internas) ============== */
.page-hero {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    margin-bottom: 18px;
}

.page-hero-media {
    position: absolute;
    inset: 0;
    background: url("../img/launcher-bg.webp") center 35% / cover no-repeat;
    transform: scale(1.02);
    filter: brightness(.5) saturate(.95);
}

.page-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 6, 7, .92) 0%, rgba(4, 6, 7, .58) 38%, rgba(4, 6, 7, .35) 70%, rgba(4, 6, 7, .55) 100%),
        linear-gradient(180deg, rgba(7, 9, 10, .6) 0%, transparent 30%, rgba(7, 9, 10, .98) 100%);
}

.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(238, 190, 106, .55), transparent);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    width: var(--content);
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 0 32px 60px;
}

.page-hero-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 11px;
    border: 1px solid rgba(199, 154, 81, .42);
    background: rgba(3, 6, 6, .6);
    color: #cdbb91;
    font-family: "Cinzel", Georgia, serif;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: 0;
    color: #f1d89c;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(2rem, 3.2vw, 2.85rem);
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-shadow: 0 3px 0 #000, 0 0 22px rgba(217, 164, 75, .25);
}

@media (max-width: 760px) {
    .page-hero {
        min-height: 180px;
    }
    .page-hero-content {
        padding: 60px 0 24px 24px;
        width: calc(100% - 24px);
    }
    .page-hero h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
}

.section-block {
    width: var(--content);
    margin: 0 auto;
}

/* ============== Utilities ============== */
.pt-48      { padding-top: 48px; }
.pb-48      { padding-bottom: 48px; }
.mt-8       { margin-top: 8px; }
.mt-16      { margin-top: 16px; }
.mt-24      { margin-top: 24px; }
.mb-16      { margin-bottom: 16px; }
.mb-24      { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--muted) !important; }
.text-gold   { color: var(--gold) !important; }
.text-soft   { color: var(--gold-soft) !important; }

/* ============== Profile / cuenta — stats ============== */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 16px;
}

.profile-stats .stat-box {
    position: relative;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 14px 12px;
    border: 1px solid rgba(125, 86, 36, .35);
    background:
        radial-gradient(circle at 50% 0, rgba(201, 154, 81, .14), transparent 60%),
        linear-gradient(135deg, rgba(11, 13, 14, .72), rgba(4, 6, 7, .92));
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55), 0 4px 12px rgba(0, 0, 0, .3);
    text-align: center;
    min-height: 80px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.profile-stats .stat-box:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 213, 155, .55);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55), 0 8px 22px rgba(0, 0, 0, .45);
}

.profile-stats .stat-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 213, 155, .65), transparent);
    opacity: .8;
}

.profile-stats .stat-box strong {
    color: var(--gold-soft);
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.profile-stats .stat-box span {
    color: var(--muted);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ============== Avatar grande de personaje ============== */
.char-hero {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px 16px 6px;
}

.char-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid rgba(240, 213, 155, .65);
    background:
        radial-gradient(circle at 35% 28%, rgba(240, 213, 155, .25), transparent 60%),
        rgba(0, 0, 0, .55);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, .55),
        0 6px 22px rgba(0, 0, 0, .55),
        0 0 22px rgba(201, 154, 81, .3);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}
.char-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.char-info {
    display: grid;
    gap: 4px;
}
.char-info .char-name {
    color: var(--gold-soft);
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.4rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.char-info .char-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1rem;
}
.char-info .char-empire-flag {
    width: 28px;
    height: 18px;
    object-fit: cover;
    border: 1px solid rgba(125, 86, 36, .55);
}

/* ============== Acciones secundarias y feature-grid ============== */
.secondary-action {
    display: inline-grid;
    align-content: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid rgba(199, 154, 81, .55);
    background: rgba(8, 11, 11, .76);
    color: var(--gold-soft);
    font-family: "Cinzel", Georgia, serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
    transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.secondary-action:hover {
    transform: translateY(-2px);
    background: rgba(15, 19, 19, .9);
    filter: brightness(1.08);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(181, 126, 54, .28);
}
.panel-heading::before,
.panel-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 154, 81, .5), transparent);
}
.panel-heading h2 {
    margin: 0;
    color: var(--gold-soft);
    font-family: "Cinzel", Georgia, serif;
    font-size: 1rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ============== STORE — paquetes y métodos de pago ============== */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 16px;
}

.store-pkg {
    position: relative;
    display: grid;
    gap: 4px;
    justify-items: center;
    padding: 22px 14px 16px;
    border: 1px solid rgba(125, 86, 36, .45);
    background:
        radial-gradient(circle at 50% 0, rgba(201, 154, 81, .14), transparent 65%),
        linear-gradient(135deg, rgba(11, 13, 14, .85), rgba(4, 6, 7, .96));
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, .55),
        0 6px 16px rgba(0, 0, 0, .4);
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.store-pkg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 213, 155, .55), transparent);
}

.store-pkg:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 213, 155, .7);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, .55),
        0 12px 26px rgba(0, 0, 0, .5),
        0 0 22px rgba(201, 154, 81, .2);
}

.store-pkg.is-featured {
    border-color: rgba(240, 213, 155, .65);
    background:
        radial-gradient(circle at 50% 0, rgba(201, 154, 81, .22), transparent 65%),
        linear-gradient(135deg, rgba(15, 13, 9, .92), rgba(8, 6, 7, .98));
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, .55),
        0 8px 22px rgba(0, 0, 0, .5),
        0 0 22px rgba(201, 154, 81, .25);
}

.store-pkg.is-featured::before {
    background: linear-gradient(90deg, transparent, rgba(255, 230, 150, .85), transparent);
    animation: pkg-glow 3s ease-in-out infinite;
}

@keyframes pkg-glow {
    0%, 100% { opacity: .65; }
    50%      { opacity: 1; }
}

.store-pkg-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 3px 8px;
    border: 1px solid rgba(240, 213, 155, .6);
    background: linear-gradient(180deg, rgba(122, 28, 20, .85), rgba(50, 9, 6, .95));
    color: #ffe0a0;
    font-family: "Cinzel", Georgia, serif;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.store-pkg-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 4px;
    border-radius: 50%;
    border: 1px solid rgba(240, 213, 155, .45);
    background:
        radial-gradient(circle at 35% 28%, #fff8da, #d9a542 60%, #5a3c0f 100%);
    color: #5a3c0f;
    font-size: 1.55rem;
    box-shadow:
        inset 0 2px 2px rgba(255, 248, 218, .55),
        inset 0 -3px 6px rgba(80, 50, 10, .45),
        0 4px 12px rgba(0, 0, 0, .4);
}

.store-pkg-coins {
    color: var(--gold-soft);
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
}

.store-pkg-coins-label {
    color: var(--muted);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: .82rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.store-pkg-bonus {
    color: #9cf19f;
    font-family: "Cinzel", Georgia, serif;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 3px 8px;
    border: 1px solid rgba(63, 195, 91, .45);
    background: rgba(63, 195, 91, .08);
    margin-bottom: 6px;
}

.store-pkg-price {
    color: var(--gold-soft);
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 6px 0 12px;
}

.store-pkg .primary-action {
    width: 100%;
    min-height: 38px;
    font-size: .72rem;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border: 1px solid rgba(125, 86, 36, .35);
    background: rgba(0, 0, 0, .35);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.payment-method:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 213, 155, .55);
    background: rgba(0, 0, 0, .55);
}

.payment-method i {
    font-size: 1.85rem;
}

.payment-method span {
    color: var(--gold-soft);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: .92rem;
    text-align: center;
}

/* ============== FOOTER LANG SELECTOR ============== */
.footer-langs {
    display: grid;
    align-content: start;
    gap: 6px;
}

.footer-langs h2 {
    margin-bottom: 4px;
    grid-column: 1 / -1;
}

/* 2 columnas dentro del bloque, fila a fila */
.footer-langs {
    grid-template-columns: 1fr 1fr;
    column-gap: 8px;
    row-gap: 5px;
}

.footer-langs a {
    display: inline-grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 7px;
    padding: 3px 0;
    color: #bdb1a0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: .85rem;
    transition: color .2s ease;
    min-width: 0;
}

.footer-langs a .lang-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-langs a .lang-code {
    display: grid;
    place-items: center;
    min-width: 32px;
    padding: 2px 4px;
    border: 1px solid rgba(125, 86, 36, .42);
    background: rgba(0, 0, 0, .35);
    color: var(--gold-soft);
    font-family: "Cinzel", Georgia, serif;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1;
    transition: border-color .2s ease, background .2s ease;
}

.footer-langs a:hover {
    color: var(--gold-soft);
}
.footer-langs a:hover .lang-code {
    border-color: rgba(240, 213, 155, .65);
    background: rgba(125, 86, 36, .25);
}

.footer-langs a.active {
    color: var(--gold-soft);
}
.footer-langs a.active .lang-code {
    border-color: rgba(240, 213, 155, .85);
    background: linear-gradient(180deg, rgba(122, 28, 20, .85), rgba(50, 9, 6, .96));
    color: #ffe0a0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55), 0 0 8px rgba(201, 154, 81, .35);
}

.section-title {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 22px;
    margin-bottom: 24px;
    text-align: center;
}

.section-title span {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 154, 81, .58), transparent);
}

.section-title h2 {
    margin: 0;
    color: var(--gold-soft);
    font-size: 1.08rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.launcher-panel,
.ranking-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 0, rgba(201, 154, 81, .08), transparent 48%),
        var(--panel);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .55), 0 16px 38px rgba(0, 0, 0, .28);
    padding: 16px;
}

.launcher-panel::before,
.ranking-panel::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(225, 173, 91, .12);
    pointer-events: none;
    z-index: 3;
}

.launcher-panel .panel-title,
.ranking-panel .panel-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(181, 126, 54, .28);
}

.launcher-panel .panel-title span,
.ranking-panel .panel-heading::before,
.ranking-panel .panel-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 154, 81, .5), transparent);
}

.launcher-panel .panel-title h1,
.ranking-panel .panel-heading h2 {
    margin: 0;
    color: var(--gold-soft);
    font-size: 1rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: rgba(240, 213, 155, .42);
    pointer-events: none;
}

.corner.top-left { top: 8px; left: 8px; border-top: 1px solid; border-left: 1px solid; }
.corner.top-right { top: 8px; right: 8px; border-top: 1px solid; border-right: 1px solid; }
.corner.bottom-left { bottom: 8px; left: 8px; border-bottom: 1px solid; border-left: 1px solid; }
.corner.bottom-right { bottom: 8px; right: 8px; border-bottom: 1px solid; border-right: 1px solid; }

.form-group:not(select) {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.form-group label {
    color: #c8b47f;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: .95rem;
}

.form-group input,
.form-group textarea,
.form-group select,
select.form-group {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(198, 146, 69, .46);
    color: #e8dfd1;
    background: rgba(0, 0, 0, .42);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    padding-top: 10px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
select.form-group:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 154, 81, .12);
}

.primary-action {
    display: inline-grid;
    align-content: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid #d29a45;
    background: linear-gradient(180deg, #a51d15, #4a0906);
    box-shadow:
        inset 0 0 0 2px rgba(0, 0, 0, .54),
        inset 0 0 16px rgba(255, 205, 104, .18);
    color: #ffe0a0;
    font-family: "Cinzel", Georgia, serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
    transition: transform .2s ease, filter .2s ease;
}

.primary-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.alert-error,
.alert-success {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(168, 32, 26, .55);
    background: rgba(143, 23, 17, .18);
    color: #ff9a92;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: .96rem;
    text-align: center;
}

.alert-success {
    border-color: rgba(63, 195, 91, .45);
    background: rgba(63, 195, 91, .12);
    color: #8eecaa;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.step-grid article {
    position: relative;
    min-height: 108px;
    padding: 18px 18px 18px 76px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .55);
}

.step-grid strong {
    position: absolute;
    left: 20px;
    top: 20px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold);
    color: var(--gold-soft);
    font-size: 1.4rem;
}

.step-grid h3 {
    margin: 0;
    color: var(--gold-soft);
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.step-grid p {
    margin: 7px 0 0;
    color: #b9ad9d;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1rem;
    line-height: 1.35;
}

.tab-nav,
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.tab-nav a,
.pagination a,
.pagination span {
    min-width: 110px;
    padding: 9px 14px;
    border: 1px solid rgba(198, 146, 69, .38);
    color: #d8d0c4;
    background: rgba(0, 0, 0, .28);
    text-align: center;
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .07em;
}

.tab-nav a.active,
.pagination .active {
    border-color: var(--gold);
    color: var(--gold-soft);
    background: rgba(143, 23, 17, .24);
}

.ranking-table {
    display: grid;
    border: 1px solid rgba(181, 126, 54, .22);
}

.ranking-row {
    display: grid;
    grid-template-columns: 70px minmax(160px, 1.2fr) 1fr 90px 120px;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(181, 126, 54, .14);
    color: #d8cfc2;
    font-family: "Cormorant Garamond", Georgia, serif;
}

.ranking-row:last-child {
    border-bottom: 0;
}

.ranking-row.head {
    color: #927f60;
    background: rgba(255, 255, 255, .025);
    font-family: "Cinzel", Georgia, serif;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ranking-row b {
    color: var(--gold-soft);
    font-family: "Cinzel", Georgia, serif;
    font-size: .86rem;
}

.medal {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #120d08;
    font-weight: 800;
}

.first { background: #d8ad61; }
.second { background: #b7b3a9; }
.third { background: #b77a4f; }

@media (max-width: 1120px) {
    .page-frame {
        width: calc(100% - 24px);
    }

    .site-header {
        grid-template-columns: 210px 1fr 138px;
        padding-inline: 18px;
    }

    .brand img {
        width: 178px;
    }

    .main-nav {
        gap: 20px;
    }

    .hero-content {
        padding-left: 58px;
    }

    .feature-strip,
    .feature-kicker,
    .section-block,
    .dashboard-grid,
    .command-grid,
    .content-grid,
    .ranking-grid,
    .steps-panel {
        width: calc(100% - 34px);
    }

    .feature-strip,
    .dashboard-grid,
    .command-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid,
    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        grid-template-columns: repeat(2, 1fr);
        padding-inline: 34px;
    }

    .step-grid {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 56px minmax(140px, 1fr) 90px 70px 100px;
    }
}

@media (max-width: 760px) {
    .page-frame {
        width: 100%;
        margin: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .site-header {
        grid-template-columns: 1fr auto;
        min-height: 76px;
    }

    .brand img {
        width: 170px;
    }

    .menu-toggle {
        display: inline-grid;
        gap: 5px;
        place-content: center;
        justify-self: end;
        width: 44px;
        height: 40px;
        border: 1px solid rgba(240, 213, 155, .95);
        background: linear-gradient(180deg, rgba(82, 13, 9, .96), rgba(10, 10, 10, .92));
        position: fixed;
        left: 326px;
        top: 18px;
        z-index: 60;
        box-shadow: 0 0 18px rgba(0, 0, 0, .75);
    }

    .menu-toggle span {
        width: 22px;
        height: 2px;
        background: var(--gold-soft);
    }

    .menu-toggle::after {
        content: "";
        position: absolute;
        inset: -6px;
        border: 1px solid rgba(240, 213, 155, .25);
        pointer-events: none;
    }

    .main-nav,
    .header-online {
        display: none;
    }

    .main-nav.open {
        display: grid;
        grid-column: 1 / -1;
        justify-self: stretch;
        gap: 0;
        padding: 10px 0;
    }

    .main-nav.open a {
        padding: 12px 8px;
        border-top: 1px solid rgba(181, 126, 54, .22);
    }

    .hero {
        min-height: 585px;
    }

    .hero-media {
        background-position: 62% top;
    }

    .hero-shade {
        background:
            linear-gradient(180deg, rgba(3, 5, 5, .16), rgba(3, 5, 5, .36) 42%, rgba(3, 5, 5, .92) 100%),
            linear-gradient(90deg, rgba(3, 5, 5, .72), transparent 70%);
    }

    .hero-content {
        width: calc(100% - 38px);
        padding: 162px 0 30px 28px;
    }

    .hero h1 {
        max-width: 330px;
        font-size: clamp(2.05rem, 10vw, 2.9rem);
        overflow-wrap: normal;
    }

    .hero p {
        max-width: 320px;
        margin-bottom: 18px;
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
        width: min(300px, 100%);
    }

    .btn-primary,
    .btn-secondary {
        min-height: 54px;
    }

    .feature-strip,
    .dashboard-grid,
    .command-grid,
    .content-grid,
    .ranking-grid,
    .steps-grid,
    .step-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .feature-kicker {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 18px;
        text-align: center;
    }

    .feature-kicker span {
        display: none;
    }

    .feature-strip {
        margin-top: 0;
    }

    .feature-strip article {
        min-height: 260px;
    }

    .feature-strip img {
        min-height: 260px;
    }

    .feature-strip p {
        display: block;
    }

    .season-tag {
        display: none;
    }

    .featured-news,
    .status-orb,
    .ranking-head,
    .ranking-row.head {
        display: none;
    }

    .section-title {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section-title span {
        display: none;
    }

    .ranking-row {
        grid-template-columns: 34px 1fr 58px;
        gap: 8px;
    }

    .ranking-row span:nth-child(3),
    .ranking-row span:nth-child(5) {
        display: none;
    }

    .panel {
        min-height: auto;
    }

    .panel-title {
        min-height: auto;
    }

    .panel-title::after {
        content: none;
    }

    .steps-grid article {
        min-height: 82px;
    }

    .site-footer {
        padding: 24px;
    }

    .newsletter div {
        display: grid;
        gap: 8px;
    }

    .newsletter input {
        border-right: 1px solid rgba(181, 126, 54, .42);
    }

    .copyright {
        flex-direction: column;
        padding: 14px 24px;
        text-align: center;
    }
}

@media (max-width: 370px) {
    .menu-toggle {
        left: 294px;
    }
}
