:root {
    --bg-night: #050a10;
    --bg-stone: #0c1824;
    --bg-card: rgba(10, 19, 29, 0.74);
    --line-gold: rgba(102, 206, 255, 0.55);
    --gold: #d8e5f2;
    --gold-soft: #6ed5ff;
    --text-main: #e2ebf5;
    --text-muted: #9db1c3;
    --ok: #8fdcc8;
    --err: #ff8d8d;
    --glow: rgba(110, 213, 255, 0.22);
    --accent-cyan: #63d9ff;
    --accent-cyan-soft: rgba(99, 217, 255, 0.22);
    --accent-silver: #cfd9e4;
    --container-width: min(1100px, calc(100% - 2rem));
}

* {
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Metamorphous", serif;
    color: var(--text-main);
    background:
        radial-gradient(900px 520px at 50% -12%, rgba(36, 89, 120, 0.24) 0%, transparent 64%),
        radial-gradient(620px 400px at 82% 110%, rgba(20, 48, 70, 0.2) 0%, transparent 68%),
        linear-gradient(180deg, #05090e 0%, #0a141e 52%, #04090f 100%);
    overflow-x: hidden;
}

.arcane-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
    opacity: 0.95;
}

.fog,
.embers {
    pointer-events: none;
    position: fixed;
    inset: 0;
}

.fog,
.embers {
    z-index: -2;
}

.fog {
    background: radial-gradient(ellipse at center, rgba(118, 219, 255, 0.08), transparent 67%);
    filter: blur(28px);
    animation: drift 20s linear infinite;
}

.fog-b {
    animation-duration: 27s;
    animation-direction: reverse;
    opacity: 0.7;
}

.embers {
    background-image:
        radial-gradient(circle at 12% 28%, rgba(109, 213, 255, 0.22) 0 2px, transparent 2px),
        radial-gradient(circle at 66% 72%, rgba(109, 213, 255, 0.14) 0 1px, transparent 1px),
        radial-gradient(circle at 88% 20%, rgba(190, 227, 255, 0.16) 0 1.5px, transparent 1.5px);
    opacity: 0.45;
}

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(
            120deg,
            transparent 0%,
            transparent 34%,
            rgba(99, 217, 255, 0.15) 46%,
            rgba(216, 237, 255, 0.36) 50%,
            rgba(99, 217, 255, 0.15) 54%,
            transparent 66%,
            transparent 100%
        ),
        radial-gradient(circle at 50% 50%, rgba(93, 207, 255, 0.13), transparent 58%);
}

.page-transition.is-active {
    animation: sectionWarp 760ms cubic-bezier(0.22, 0.9, 0.28, 1);
}

.app-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 140;
    min-width: 240px;
    max-width: min(92vw, 420px);
    border-radius: 0.8rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(99, 217, 255, 0.45);
    background: rgba(8, 17, 27, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 22px rgba(99, 217, 255, 0.22);
    color: var(--text-main);
}

.app-toast.ok {
    border-color: rgba(143, 220, 200, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 22px rgba(143, 220, 200, 0.2);
}

.app-toast.error {
    border-color: rgba(255, 141, 141, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 22px rgba(255, 141, 141, 0.2);
}

.app-toast.show {
    animation: toastIn 260ms ease, toastOut 260ms ease 2.75s forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(16px);
    }
}

@keyframes sectionWarp {
    0% {
        opacity: 0;
        transform: translateX(-128%) skewX(-12deg);
    }
    20% {
        opacity: 1;
    }
    58% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(126%) skewX(-12deg);
    }
}

@keyframes drift {
    from {
        transform: translateX(-2%) translateY(-1%);
    }
    to {
        transform: translateX(2%) translateY(1%);
    }
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(99, 217, 255, 0.3);
    background: rgba(5, 11, 18, 0.78);
    backdrop-filter: blur(7px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo {
    width: 2.2rem;
    height: 2.2rem;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(99, 217, 255, 0.45));
    transform-origin: center;
    will-change: transform, filter;
    animation: crestPulse 2.8s ease-in-out infinite;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 14px rgba(99, 217, 255, 0.6));
}

.brand:focus-visible {
    outline: none;
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--line-gold);
    color: var(--gold);
    font-family: "Metamorphous", serif;
    font-weight: 800;
    box-shadow: 0 0 0 1px rgba(99, 217, 255, 0.28), 0 0 24px rgba(99, 217, 255, 0.22) inset;
}

.brand-text {
    font-family: "Metamorphous", serif;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.nav {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.nav-shell {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.nav-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 217, 255, 0.35);
    background: rgba(8, 16, 25, 0.82);
    color: var(--text-main);
    font: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-menu-btn:hover {
    border-color: rgba(127, 217, 255, 0.48);
    box-shadow: 0 0 18px rgba(99, 217, 255, 0.16);
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav a:hover {
    color: var(--text-main);
    text-shadow: 0 0 14px rgba(99, 217, 255, 0.35);
}

.nav a.active {
    color: var(--gold);
    text-shadow: 0 0 12px rgba(99, 217, 255, 0.3);
}

.lang-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.lang-wrap select {
    width: auto;
    min-width: 4.5rem;
}

.session-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 217, 255, 0.35);
    background: rgba(8, 16, 25, 0.8);
    color: var(--text-muted);
    white-space: nowrap;
}

.session-chip-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.session-chip-link:hover,
.session-chip-link:focus-visible {
    border-color: rgba(127, 217, 255, 0.52);
    box-shadow: 0 0 18px rgba(99, 217, 255, 0.2);
    color: var(--text-main);
}

.online-sidebar-chip {
    border-color: rgba(127, 217, 255, 0.42);
    box-shadow: 0 0 0 1px rgba(99, 217, 255, 0.08), 0 0 20px rgba(29, 122, 160, 0.16) inset;
}

.online-sidebar-chip strong {
    color: var(--accent-cyan);
}

.launch-chip {
    border-color: rgba(212, 175, 55, 0.38);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08), 0 0 20px rgba(212, 175, 55, 0.12) inset;
}

.launch-chip strong {
    color: var(--gold);
}

.session-chip strong,
.auth-logged strong,
#panelUser,
#panelMainStatus,
.char-inline {
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.session-chip strong.nick-default,
.auth-logged strong.nick-default,
#panelUser.nick-default,
#panelMainStatus.nick-default,
.char-inline.nick-default {
    color: var(--accent-cyan);
}

.session-chip strong.nick-gm,
.auth-logged strong.nick-gm,
#panelUser.nick-gm,
#panelMainStatus.nick-gm,
.char-inline.nick-gm {
    color: #ffad5c;
    text-shadow: 0 0 16px rgba(255, 173, 92, 0.5);
}

.session-chip strong.nick-criminal,
.auth-logged strong.nick-criminal,
#panelUser.nick-criminal,
#panelMainStatus.nick-criminal,
.char-inline.nick-criminal {
    color: #ff6767;
    text-shadow: 0 0 16px rgba(255, 103, 103, 0.5);
}

.session-chip strong.nick-citizen,
.auth-logged strong.nick-citizen,
#panelUser.nick-citizen,
#panelMainStatus.nick-citizen,
.char-inline.nick-citizen {
    color: #7fd9ff;
    text-shadow: 0 0 16px rgba(127, 217, 255, 0.5);
}

.char-inline {
    font-weight: 700;
}

select,
input {
    width: 100%;
    border-radius: 0.6rem;
    border: 1px solid rgba(99, 217, 255, 0.35);
    background: rgba(9, 17, 27, 0.7);
    color: var(--text-main);
    padding: 0.66rem 0.8rem;
    font: inherit;
}

input[type="checkbox"] {
    width: 1.08rem;
    height: 1.08rem;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0.25rem;
    background: transparent;
    accent-color: var(--accent-cyan);
}

textarea {
    width: 100%;
    border-radius: 0.7rem;
    border: 1px solid rgba(99, 217, 255, 0.35);
    background: rgba(9, 17, 27, 0.7);
    color: var(--text-main);
    padding: 0.66rem 0.8rem;
    font: inherit;
    resize: vertical;
}

main {
    width: var(--container-width);
    margin: 0 auto;
    padding: 1.8rem 0 4rem;
}

.hero {
    text-align: center;
    padding: 3.35rem 1rem 3.4rem;
}

.kicker {
    color: var(--gold-soft);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin: 0;
    font-size: 0.86rem;
    text-shadow: 0 0 14px rgba(99, 217, 255, 0.32);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Metamorphous", serif;
    font-weight: 400;
    letter-spacing: 0.045em;
    line-height: 1.14;
    color: #edf6ff;
    -webkit-text-stroke: 0.8px rgba(98, 183, 224, 0.58);
    paint-order: stroke fill;
    text-rendering: geometricPrecision;
    text-shadow:
        0 1px 0 rgba(3, 10, 16, 0.9),
        0 0 10px rgba(99, 217, 255, 0.26),
        0 0 20px rgba(99, 217, 255, 0.12);
}

h1 {
    margin-top: 0.8rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.06em;
    text-shadow:
        0 1px 0 rgba(3, 10, 16, 0.92),
        0 0 16px rgba(99, 217, 255, 0.32),
        0 0 30px rgba(99, 217, 255, 0.16);
}

h2 {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

h3 {
    font-size: clamp(1.08rem, 1.9vw, 1.42rem);
    letter-spacing: 0.04em;
}

.hero-steam-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.72rem;
    margin: 1rem auto 1.2rem;
    padding: 0.68rem 1.24rem;
    border-radius: 999px;
    border: 1px solid rgba(156, 229, 255, 0.58);
    background:
        linear-gradient(180deg, rgba(23, 43, 61, 0.95) 0%, rgba(11, 20, 32, 0.92) 62%, rgba(8, 15, 25, 0.9) 100%);
    color: #f3f9ff;
    text-decoration: none;
    letter-spacing: 0.04em;
    box-shadow:
        0 0 0 1px rgba(140, 223, 255, 0.24),
        0 0 26px rgba(99, 217, 255, 0.24),
        0 10px 24px rgba(0, 0, 0, 0.34);
    animation: steamPulse 3.2s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hero-steam-cta:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(183, 236, 255, 0.84);
    box-shadow:
        0 0 0 1px rgba(170, 236, 255, 0.34),
        0 0 34px rgba(99, 217, 255, 0.38),
        0 16px 30px rgba(0, 0, 0, 0.38);
}

.hero-steam-cta:focus-visible {
    outline: none;
    border-color: rgba(183, 236, 255, 0.84);
    box-shadow:
        0 0 0 2px rgba(74, 130, 160, 0.45),
        0 0 30px rgba(99, 217, 255, 0.38);
}

.steam-icon-wrap {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: radial-gradient(circle at 35% 30%, rgba(147, 229, 255, 0.24), rgba(18, 34, 49, 0.9));
    border: 1px solid rgba(157, 229, 255, 0.52);
    box-shadow: inset 0 0 20px rgba(99, 217, 255, 0.18), 0 0 18px rgba(99, 217, 255, 0.24);
}

.steam-icon {
    width: 1.65rem;
    height: 1.65rem;
}

.steam-icon circle:first-child {
    fill: #10253a;
    stroke: rgba(185, 239, 255, 0.95);
    stroke-width: 2.2;
}

.steam-icon circle:nth-child(2),
.steam-icon circle:nth-child(4) {
    fill: rgba(198, 243, 255, 0.98);
}

.steam-icon circle:nth-child(3),
.steam-icon circle:nth-child(5) {
    fill: #0f2132;
}

.steam-icon path {
    fill: none;
    stroke: rgba(229, 250, 255, 0.96);
    stroke-width: 3;
    stroke-linecap: round;
}

.hero-logo-shell {
    display: block;
    width: min(520px, 86vw);
    margin: 1.2rem auto 0.95rem;
    transition: transform 0.2s ease;
}

.hero-logo {
    display: block;
    width: 100%;
    margin: 0 auto;
    filter:
        drop-shadow(0 14px 34px rgba(0, 0, 0, 0.5))
        drop-shadow(0 0 32px rgba(99, 217, 255, 0.32))
        drop-shadow(0 0 68px rgba(99, 217, 255, 0.16));
    transform-origin: center;
    will-change: transform, filter;
    animation: logoFloat 4.8s ease-in-out infinite, logoAura 3.6s ease-in-out infinite, logoEpicBeat 6.8s ease-in-out infinite;
    transition: filter 0.28s ease;
}

.hero-logo-shell:hover,
.hero-logo-shell:focus-visible {
    transform: scale(1.035);
}

.hero-copy {
    width: min(740px, 100%);
    margin: 1rem auto 1.6rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.72rem;
}

.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.2rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 255, 180, 0.25);
    background: rgba(10, 30, 20, 0.52);
    color: #8fdcc8;
    font-size: 0.82rem;
    letter-spacing: 0.07em;
}

.online-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #4dff9a;
    box-shadow: 0 0 6px #4dff9a;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

.hero-primary-action {
    display: flex;
    justify-content: center;
    margin-top: 0.2rem;
}

.downloads,
.portal,
.support-page {
    margin-top: 2.8rem;
}

.wiki {
    margin-top: 2.8rem;
}

.ranking {
    margin-top: 2.8rem;
}

main > section {
    position: relative;
}

main > section.section-view {
    display: none;
}

main > section.section-view.is-active {
    display: block;
}

main > section.section-view.reveal {
    animation: none;
}

main > section:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1.3rem;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(99, 217, 255, 0.1) 10%,
        rgba(99, 217, 255, 0.42) 50%,
        rgba(99, 217, 255, 0.1) 90%,
        transparent 100%
    );
}

.section-head {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 0.4rem;
    padding: 0.95rem 1.1rem;
    margin-bottom: 0.9rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(99, 217, 255, 0.26);
    background:
        linear-gradient(180deg, rgba(30, 56, 77, 0.35), rgba(10, 18, 28, 0.45)),
        rgba(8, 15, 24, 0.62);
    box-shadow:
        inset 0 0 0 1px rgba(99, 217, 255, 0.08),
        0 0 20px rgba(99, 217, 255, 0.08);
}

.section-head::before {
    content: "";
    position: absolute;
    inset: -40% -26%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.56;
    filter: blur(12px);
    background:
        radial-gradient(48% 58% at 50% 50%, rgba(125, 222, 255, 0.34) 0%, rgba(125, 222, 255, 0.14) 38%, transparent 70%),
        linear-gradient(110deg, transparent 16%, rgba(170, 238, 255, 0.22) 48%, transparent 78%);
    transform: translateX(-26%) rotate(2deg);
    animation: sectionHeadGlow 6.2s ease-in-out infinite;
}

.section-head::after {
    content: "";
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 0.6rem;
    height: 1px;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(99, 217, 255, 0.46) 0%,
        rgba(99, 217, 255, 0.18) 45%,
        transparent 100%
    );
}

.section-head > * {
    position: relative;
    z-index: 2;
}

.section-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.22rem 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 217, 255, 0.44);
    background: rgba(9, 17, 27, 0.78);
    color: var(--accent-cyan);
    font-family: "Metamorphous", serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.section-head h2 {
    margin-bottom: 0.12rem;
    animation: titleGlow 4.4s ease-in-out infinite;
}

.hero h1 {
    animation: titleGlow 3.9s ease-in-out infinite;
}

.kicker {
    animation: kickerGlow 5.2s ease-in-out infinite;
}

.section-head p {
    margin: 0 0 0.6rem;
}

#inicio,
#news,
#eventos,
#descargas,
#wiki,
#ranking,
#portal,
#soporte {
    scroll-margin-top: 7.2rem;
}

.downloads h2,
.portal-head h2 {
    margin-bottom: 0.35rem;
}

.portal-head p,
.downloads p {
    color: var(--text-muted);
}

.ranking-head p {
    color: var(--text-muted);
}

.events-head p,
.events-subhead p,
.news-head p,
.wiki-head p {
    color: var(--text-muted);
}

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

.auth-grid.logged-in {
    grid-template-columns: 1fr;
}

.auth-grid.logged-in .panel-card {
    grid-column: 1 / -1;
}

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

.news-grid {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    align-items: start;
}

.wiki-grid {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

.events-view-switch {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem;
    border: 1px solid rgba(99, 217, 255, 0.28);
    border-radius: 999px;
    background: rgba(7, 14, 22, 0.74);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(99, 217, 255, 0.06);
}

.events-view-tab {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    padding: 0.45rem 0.95rem;
    font: inherit;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.events-view-tab:hover {
    color: var(--text-main);
}

.events-view-tab.is-active {
    color: var(--text-main);
    border-color: rgba(99, 217, 255, 0.4);
    background: linear-gradient(180deg, rgba(99, 217, 255, 0.2) 0%, rgba(99, 217, 255, 0.1) 100%);
    box-shadow: 0 0 18px rgba(99, 217, 255, 0.2), inset 0 0 0 1px rgba(99, 217, 255, 0.15);
}

.events-view-panels {
    margin-top: 1rem;
}

.events-view-pane {
    display: grid;
    gap: 1rem;
    animation: eventsPaneIn 200ms ease;
}

.events-view-pane[hidden] {
    display: none !important;
}

@keyframes eventsPaneIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.events-updated {
    margin-top: 0.55rem;
    font-size: 0.95rem;
}

.events-updated strong {
    color: var(--accent-cyan);
}

.events-list,
.tournaments-grid {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.events-view-pane > .events-list,
.events-view-pane > .tournaments-grid {
    margin-top: 0;
}

.events-subhead {
    margin-top: 0.2rem;
}

.event-card,
.tournament-card {
    display: grid;
    gap: 0.9rem;
}

.event-card-head,
.tournament-card-head,
.tournament-bracket-head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
}

.event-kicker {
    margin: 0 0 0.2rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
}

.event-card-head h3,
.tournament-card-head h3,
.tournament-bracket-head h3 {
    margin: 0;
}

.event-copy {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

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

.event-meta-block {
    display: grid;
    gap: 0.22rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(99, 217, 255, 0.18);
    border-radius: 0.8rem;
    background: rgba(8, 15, 24, 0.58);
}

.event-meta-block span {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.event-meta-block strong {
    color: var(--text-main);
}

.event-winner,
.tournament-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.24rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 217, 255, 0.24);
    background: rgba(8, 17, 27, 0.74);
    color: var(--accent-cyan);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.event-winner.is-armada {
    color: #8fd8ff;
    border-color: rgba(143, 216, 255, 0.32);
}

.event-winner.is-chaos {
    color: #ffb4b4;
    border-color: rgba(255, 141, 141, 0.34);
}

.tournament-status.is-open {
    color: #8fdcc8;
    border-color: rgba(143, 220, 200, 0.34);
}

.tournament-status.is-closed {
    color: #ffb4b4;
    border-color: rgba(255, 141, 141, 0.34);
}

.tournament-card.is-selected {
    grid-column: 1 / -1;
    border-color: rgba(99, 217, 255, 0.46);
    box-shadow: 0 0 26px rgba(99, 217, 255, 0.14), inset 0 0 0 1px rgba(99, 217, 255, 0.08);
    overflow: visible;
}

.tournament-actions {
    display: grid;
    gap: 0.4rem;
    justify-items: start;
}

.tournament-register-hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.event-card-actions {
    display: flex;
    justify-content: flex-start;
}

.event-open-tournaments-btn {
    padding-top: 0.46rem;
    padding-bottom: 0.46rem;
}

.event-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.event-requirement-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 217, 255, 0.16);
    background: rgba(8, 15, 24, 0.62);
    color: var(--text-main);
    font-size: 0.82rem;
}

.event-requirement-chip strong {
    color: var(--accent-cyan);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tournament-participants {
    display: grid;
    gap: 0.45rem;
}

.tournament-participants p {
    margin: 0;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.tournament-participant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tournament-participant-list span {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 217, 255, 0.18);
    background: rgba(8, 15, 24, 0.64);
    color: var(--text-main);
    font-size: 0.84rem;
}

.tournament-bracket-card {
    margin-top: 1rem;
}

.tournament-inline-bracket-wrap {
    margin-top: 0.75rem;
    overflow: visible;
}

.tournament-inline-bracket {
    margin-top: 0;
    animation: revealUp 220ms ease;
}

.tournament-bracket-empty {
    margin-top: 0.85rem;
    color: var(--text-muted);
}

.event-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.event-modal.hidden {
    display: none;
}

.event-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 14, 0.78);
    backdrop-filter: blur(8px);
}

.event-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 40rem);
    display: grid;
    gap: 0.9rem;
}

.event-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.event-modal-head h3 {
    margin: 0;
}

.event-register-copy {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.event-register-progress {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.42rem 0.56rem;
    border: 1px solid rgba(99, 217, 255, 0.2);
    border-radius: 999px;
    background: rgba(8, 15, 24, 0.58);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-register-step {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 217, 255, 0.3);
    background: rgba(6, 13, 20, 0.8);
    color: var(--text-muted);
    font-size: 0.76rem;
}

.event-register-step.is-active {
    color: var(--text-main);
    border-color: rgba(99, 217, 255, 0.55);
    background: rgba(99, 217, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(99, 217, 255, 0.12), 0 0 12px rgba(99, 217, 255, 0.18);
}

.event-register-meta {
    margin: 0;
    color: var(--text-main);
    font-size: 0.9rem;
}

.event-register-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.event-register-character-summary {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0.72rem 0.8rem;
    border: 1px solid rgba(99, 217, 255, 0.2);
    border-radius: 0.85rem;
    background: rgba(8, 15, 24, 0.58);
}

.event-register-character-summary h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
}

.event-register-character-summary p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.tournament-bracket {
    margin-top: 1rem;
    display: grid;
    gap: 1.8rem;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0 0.45rem;
}

.tournament-round {
    min-width: 240px;
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

.tournament-round h4 {
    margin: 0;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.86rem;
}

.tournament-round-matches {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--round-gap, 1rem);
    padding-top: var(--round-padding-top, 0);
}

.tournament-match-shell {
    position: relative;
    min-height: var(--match-height, 7.25rem);
}

.tournament-match-shell::before,
.tournament-match-shell::after,
.tournament-match::before,
.tournament-match::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.tournament-match-shell.has-left-connector::before {
    left: calc(var(--connector-width, 1.4rem) * -1);
    top: 50%;
    width: var(--connector-width, 1.4rem);
    border-top: 2px solid rgba(99, 217, 255, 0.18);
}

.tournament-match-shell.has-right-connector::after {
    right: calc(var(--connector-width, 1.4rem) * -1);
    top: 50%;
    width: var(--connector-width, 1.4rem);
    border-top: 2px solid rgba(99, 217, 255, 0.18);
}

.tournament-match {
    position: relative;
    display: grid;
    gap: 0.38rem;
    border: 1px solid rgba(99, 217, 255, 0.18);
    border-radius: 0.8rem;
    background:
        linear-gradient(180deg, rgba(16, 30, 44, 0.88), rgba(8, 15, 24, 0.82));
    box-shadow: 0 0 0 1px rgba(99, 217, 255, 0.05), 0 14px 30px rgba(0, 0, 0, 0.18);
    padding: 0.72rem 0.78rem;
    min-height: var(--match-height, 7.25rem);
    height: var(--match-height, 7.25rem);
    overflow: visible;
}

.tournament-match-shell.is-branch-top .tournament-match::after {
    right: calc(var(--connector-width, 1.4rem) * -1);
    top: 50%;
    height: var(--connector-span, 0);
    border-right: 2px solid rgba(99, 217, 255, 0.18);
}

.tournament-match-shell.is-branch-bottom .tournament-match::before {
    right: calc(var(--connector-width, 1.4rem) * -1);
    bottom: 50%;
    height: var(--connector-span, 0);
    border-right: 2px solid rgba(99, 217, 255, 0.18);
}

.tournament-player {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    color: var(--text-muted);
}

.tournament-player span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tournament-player strong {
    color: var(--text-main);
    min-width: 1.6rem;
    text-align: right;
}

.tournament-player.is-winner span,
.tournament-player.is-winner strong {
    color: var(--accent-cyan);
}

.tournament-match-winner {
    margin: 0.18rem 0 0;
    color: var(--gold);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.news-list-card,
.wiki-nav-card {
    width: 100%;
}

.news-detail-card,
.wiki-content-card {
    width: 100%;
}

.wiki-content-label {
    margin: 0 0 0.35rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.card {
    position: relative;
    isolation: isolate;
    --events-spotlight-x: 50%;
    --events-spotlight-y: 50%;
    --events-spotlight-opacity: 0;
    border-radius: 1rem;
    border: 1px solid rgba(99, 217, 255, 0.26);
    background:
        linear-gradient(180deg, rgba(24, 47, 66, 0.42), rgba(9, 18, 28, 0.72)),
        var(--bg-card);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(99, 217, 255, 0.1),
        0 0 34px rgba(99, 217, 255, 0.07);
    padding: 1.1rem;
    min-width: 0;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 0;
    pointer-events: none;
    opacity: var(--events-spotlight-opacity);
    background:
        radial-gradient(
            260px circle at var(--events-spotlight-x) var(--events-spotlight-y),
            rgba(123, 224, 255, 0.3) 0%,
            rgba(123, 224, 255, 0.15) 28%,
            rgba(123, 224, 255, 0.04) 58%,
            transparent 74%
        );
    transition: opacity 0.22s ease;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(14px 14px at 16px 16px, rgba(216, 237, 255, 0.18), transparent 74%),
        radial-gradient(14px 14px at calc(100% - 16px) 16px, rgba(216, 237, 255, 0.18), transparent 74%),
        radial-gradient(14px 14px at 16px calc(100% - 16px), rgba(216, 237, 255, 0.14), transparent 74%),
        radial-gradient(14px 14px at calc(100% - 16px) calc(100% - 16px), rgba(216, 237, 255, 0.14), transparent 74%);
    opacity: 0.45;
}

.portal {
    border: 1px solid rgba(99, 217, 255, 0.25);
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(7, 13, 20, 0.76);
}

.support-page {
    border: 1px solid rgba(99, 217, 255, 0.25);
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(7, 13, 20, 0.76);
}

.api-box {
    margin-top: 1rem;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.status {
    margin-top: 1rem;
    border-radius: 0.7rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid transparent;
}

.status.ok {
    color: var(--ok);
    border-color: rgba(142, 207, 132, 0.35);
    background: rgba(49, 83, 44, 0.28);
}

.status.error {
    color: var(--err);
    border-color: rgba(255, 141, 141, 0.32);
    background: rgba(91, 31, 31, 0.33);
}

#registerDisabledNotice {
    margin-top: 0.82rem;
    margin-bottom: 1.05rem;
}

.hidden {
    display: none !important;
}

.tabs {
    display: flex;
    gap: 0.55rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.tab {
    background: rgba(10, 16, 25, 0.72);
    color: var(--text-muted);
    border: 1px solid rgba(99, 217, 255, 0.22);
    border-radius: 0.6rem;
    padding: 0.52rem 0.8rem;
    cursor: pointer;
}

.tab.active {
    color: var(--text-main);
    border-color: var(--line-gold);
    box-shadow: 0 0 20px var(--glow);
}

.tab:disabled,
.tab.is-disabled {
    opacity: 0.48;
    cursor: not-allowed;
    filter: saturate(0.74);
}

.tab:disabled:hover,
.tab.is-disabled:hover {
    color: var(--text-muted);
    text-shadow: none;
}

.form {
    display: grid;
    gap: 0.55rem;
}

.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(99, 217, 255, 0.36);
    border-radius: 0.7rem;
    padding: 0.62rem 0.9rem;
    color: var(--text-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease, filter 0.22s ease, background 0.22s ease;
}

.btn::before {
    content: "";
    position: absolute;
    top: -130%;
    left: -35%;
    width: 55%;
    height: 360%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 30%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(255, 255, 255, 0.03) 70%,
        transparent 100%
    );
    transform: rotate(14deg) translateX(-170%);
    opacity: 0;
    transition: transform 0.52s ease, opacity 0.28s ease;
    pointer-events: none;
    z-index: 1;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(0.7rem - 2px);
    border: 1px solid rgba(171, 233, 255, 0.16);
    opacity: 0.6;
    pointer-events: none;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(126, 224, 255, 0.62);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32), 0 0 22px rgba(99, 217, 255, 0.2);
    filter: brightness(1.05);
}

.btn:hover::before {
    opacity: 1;
    transform: rotate(14deg) translateX(360%);
}

.btn:active {
    transform: translateY(0) scale(0.985);
    filter: brightness(0.96);
}

.btn:focus-visible {
    outline: none;
    border-color: rgba(134, 225, 255, 0.82);
    box-shadow: 0 0 0 2px rgba(63, 116, 145, 0.44), 0 0 24px rgba(99, 217, 255, 0.36);
}

.btn-primary {
    background: linear-gradient(180deg, #3f88ae 0%, #285f7c 62%, #204e67 100%);
    box-shadow: 0 0 0 1px rgba(131, 219, 255, 0.24), 0 0 22px var(--glow);
    animation: btnArcanePulse 3.2s ease-in-out infinite;
}

.btn-secondary,
.btn-ghost {
    background: linear-gradient(180deg, rgba(20, 34, 48, 0.88), rgba(10, 17, 26, 0.82));
}

.btn-secondary:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 18px rgba(110, 213, 255, 0.22);
}

.btn-ghost {
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--text-main);
}

@keyframes btnArcanePulse {
    0%,
    100% {
        box-shadow: 0 0 0 1px rgba(131, 219, 255, 0.2), 0 0 16px rgba(99, 217, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(171, 233, 255, 0.36), 0 0 28px rgba(99, 217, 255, 0.4);
    }
}

@keyframes crestPulse {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(99, 217, 255, 0.45));
    }
    50% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 15px rgba(99, 217, 255, 0.64));
    }
}

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

@keyframes logoAura {
    0%,
    100% {
        filter:
            drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45))
            drop-shadow(0 0 20px rgba(99, 217, 255, 0.2));
    }
    50% {
        filter:
            drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 30px rgba(99, 217, 255, 0.38));
    }
}

@keyframes logoEpicBeat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-2px) scale(1.018);
    }
    55% {
        transform: translateY(-1px) scale(1.008);
    }
}

@keyframes steamPulse {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(140, 223, 255, 0.24),
            0 0 22px rgba(99, 217, 255, 0.2),
            0 10px 24px rgba(0, 0, 0, 0.34);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(176, 237, 255, 0.38),
            0 0 34px rgba(99, 217, 255, 0.36),
            0 12px 28px rgba(0, 0, 0, 0.38);
    }
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.empty-state {
    margin-top: 0.8rem;
    color: var(--text-muted);
}

.stats {
    margin-top: 0.95rem;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
    border: 1px solid rgba(99, 217, 255, 0.24);
    border-radius: 0.65rem;
    padding: 0.65rem;
    background: rgba(9, 16, 24, 0.58);
    display: grid;
    gap: 0.2rem;
}

.stat span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat strong {
    font-size: 1rem;
}

.table-wrap {
    margin-top: 0.9rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.panel-card table {
    min-width: 760px;
}

th,
td {
    border-bottom: 1px solid rgba(99, 217, 255, 0.17);
    padding: 0.58rem 0.45rem;
    text-align: left;
    white-space: nowrap;
}

th {
    color: var(--gold);
    font-weight: 600;
}

.btn-danger {
    background: linear-gradient(180deg, #8a3e3e 0%, #6c2f2f 60%, #522121 100%);
    border-color: rgba(255, 141, 141, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 141, 141, 0.2), 0 0 18px rgba(155, 52, 52, 0.22);
}

.btn-danger:hover {
    border-color: rgba(255, 170, 170, 0.62);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34), 0 0 24px rgba(196, 66, 66, 0.35);
}

.ranking-table {
    min-width: 0;
}

.ranking-board {
    margin-top: 1rem;
}

.ranking-controls {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ranking-filter {
    display: grid;
    gap: 0.35rem;
}

.ranking-meta {
    margin: 0.85rem 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.ranking-table-wide {
    min-width: 920px;
}

.ranking-card td:first-child {
    color: var(--gold);
    font-weight: 700;
    width: 2.4rem;
}

.rank-value {
    color: var(--accent-cyan);
    font-weight: 700;
}

.rank-faction {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(99, 217, 255, 0.25);
    padding: 0.2rem 0.56rem;
    font-size: 0.82rem;
}

.rank-faction-armada {
    color: #8fd8ff;
    border-color: rgba(143, 216, 255, 0.45);
}

.rank-faction-caos {
    color: #ff9c9c;
    border-color: rgba(255, 156, 156, 0.45);
}

.rank-faction-none {
    color: var(--text-muted);
    border-color: rgba(157, 179, 197, 0.3);
}

.news-updated,
.wiki-updated {
    margin-top: 0.55rem;
    font-size: 0.95rem;
}

.news-updated strong,
.wiki-updated strong {
    color: var(--accent-cyan);
}

.news-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.7rem;
    grid-template-columns: 1fr;
    align-items: start;
}

.wiki-list {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.7rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
}

.news-link {
    display: grid;
    gap: 0.4rem;
    border: 1px solid rgba(99, 217, 255, 0.22);
    background: rgba(10, 16, 24, 0.72);
    color: var(--text-main);
    border-radius: 0.7rem;
    padding: 0.72rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.news-link:hover {
    border-color: rgba(99, 217, 255, 0.42);
    box-shadow: 0 0 18px rgba(99, 217, 255, 0.14);
    transform: translateY(-1px);
}

.news-link.active {
    border-color: rgba(99, 217, 255, 0.58);
    box-shadow: 0 0 20px rgba(99, 217, 255, 0.18);
}

.news-link-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-link-title {
    margin: 0;
    color: var(--text-main);
    font-size: 0.98rem;
}

.news-link-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.news-link-summary {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.news-kind-badge,
.news-kind-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(99, 217, 255, 0.34);
    background: rgba(8, 17, 27, 0.76);
    color: var(--accent-cyan);
    padding: 0.18rem 0.58rem;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-kind-chip.is-anuncio,
.news-kind-badge.is-anuncio {
    border-color: rgba(255, 194, 122, 0.38);
    color: #ffd19a;
}

.news-pinned-mark,
.news-pinned-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(216, 229, 242, 0.2);
    background: rgba(216, 229, 242, 0.08);
    color: var(--gold);
    padding: 0.18rem 0.56rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
}

.news-detail-card h3 {
    margin-bottom: 0.45rem;
}

.news-meta {
    margin: 0 0 0.8rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.news-summary {
    margin: 0 0 1rem;
    color: #edf7ff;
    line-height: 1.55;
}

.news-summary:empty {
    display: none;
}

.news-author {
    margin: 1rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(99, 217, 255, 0.16);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.news-admin {
    margin-top: 1rem;
}

.discord-news-card {
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.discord-news-head h3 {
    margin: 0 0 0.25rem;
}

.discord-news-head p {
    margin: 0;
    color: var(--text-muted);
}

.discord-news-frame {
    width: 100%;
    min-height: 360px;
    border: 1px solid rgba(99, 217, 255, 0.24);
    border-radius: 0.8rem;
    background: rgba(5, 10, 16, 0.75);
}

.discord-news-cta {
    width: fit-content;
}

.news-admin-grid {
    margin-top: 0.85rem;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-editor-input {
    min-height: 2.62rem;
}

textarea.news-editor-input {
    min-height: 280px;
}

.news-editor-note {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.news-preview-block {
    margin-top: 0.85rem;
    border: 1px solid rgba(99, 217, 255, 0.22);
    border-radius: 0.8rem;
    background: rgba(8, 15, 24, 0.56);
    padding: 0.85rem;
}

.news-preview-content {
    min-height: 3rem;
}

.wiki-section-group {
    border: 1px solid rgba(99, 217, 255, 0.2);
    border-radius: 0.68rem;
    background: rgba(8, 15, 24, 0.62);
    padding: 0.52rem;
    height: 100%;
}

.wiki-section-title {
    margin: 0 0 0.42rem;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.wiki-section-links {
    display: grid;
    gap: 0.4rem;
}

.wiki-link {
    border: 1px solid rgba(99, 217, 255, 0.22);
    background: rgba(10, 16, 24, 0.72);
    color: var(--text-main);
    border-radius: 0.6rem;
    padding: 0.48rem 0.6rem;
    text-align: left;
    cursor: pointer;
}

.wiki-link:hover {
    border-color: rgba(99, 217, 255, 0.4);
    box-shadow: 0 0 16px rgba(99, 217, 255, 0.14);
}

.wiki-link.active {
    border-color: rgba(99, 217, 255, 0.55);
    box-shadow: 0 0 18px rgba(99, 217, 255, 0.2);
    color: #edf7ff;
}

.wiki-content {
    margin-top: 0.8rem;
    color: var(--text-main);
    line-height: 1.55;
    white-space: normal;
    word-break: break-word;
}

.wiki-content p {
    margin: 0 0 0.9rem;
}

.wiki-admin {
    margin-top: 1rem;
}

.wiki-admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.wiki-admin-head-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wiki-admin-grid {
    margin-top: 0.85rem;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.events-admin-grid .events-admin-description,
.events-admin-grid .events-admin-classes-field {
    grid-column: 1 / -1;
}

.events-showcase-admin-grid .events-showcase-description {
    grid-column: 1 / -1;
}

.events-class-grid {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.events-class-option {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.68rem;
    border-radius: 0.72rem;
    border: 1px solid rgba(99, 217, 255, 0.2);
    background: rgba(9, 17, 27, 0.68);
    color: var(--text-main);
}

.events-class-option input {
    margin: 0;
}

.wiki-admin-field {
    display: grid;
    gap: 0.35rem;
    align-self: start;
}

.wiki-admin-field-sections-manager {
    grid-column: 1 / -1;
    margin-top: -0.1rem;
}

.wiki-admin-field-check {
    align-content: start;
}

.wiki-published-wrap {
    min-height: 2.62rem;
    border: 1px solid rgba(99, 217, 255, 0.35);
    border-radius: 0.6rem;
    background: rgba(9, 17, 27, 0.7);
    display: inline-flex;
    align-items: center;
    padding: 0 0.62rem;
    width: 100%;
}

.wiki-admin-field-check input[type="checkbox"] {
    justify-self: start;
    margin-top: 0;
}

.wiki-section-dropdown {
    margin: 0.2rem 0 0;
    border: 1px solid rgba(99, 217, 255, 0.2);
    border-radius: 0.6rem;
    background: rgba(8, 15, 24, 0.66);
}

.wiki-section-dropdown summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    padding: 0.4rem 0.55rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
}

.wiki-section-dropdown summary::-webkit-details-marker {
    display: none;
}

.wiki-section-dropdown[open] summary {
    border-bottom-color: rgba(99, 217, 255, 0.14);
    color: var(--text-main);
}

.wiki-section-manager {
    padding: 0.45rem;
    display: grid;
    gap: 0.35rem;
    max-height: 210px;
    overflow-y: auto;
}

.wiki-section-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: center;
}

.wiki-section-row.is-selected .wiki-section-pick {
    border-color: rgba(99, 217, 255, 0.46);
    box-shadow: 0 0 12px rgba(99, 217, 255, 0.16);
    color: var(--text-main);
}

.wiki-section-pick {
    border: 1px solid rgba(99, 217, 255, 0.24);
    border-radius: 0.52rem;
    background: rgba(9, 17, 27, 0.76);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    width: 100%;
    padding: 0.34rem 0.48rem;
    cursor: pointer;
}

.wiki-section-pick:hover {
    border-color: rgba(99, 217, 255, 0.42);
    color: var(--text-main);
}

.wiki-section-count {
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

.wiki-section-delete {
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid rgba(255, 141, 141, 0.34);
    border-radius: 0.52rem;
    background: rgba(25, 10, 14, 0.78);
    color: #ffb1b1;
    cursor: pointer;
    line-height: 1;
    font-size: 1.1rem;
}

.wiki-section-delete:hover:not(:disabled) {
    border-color: rgba(255, 141, 141, 0.65);
    box-shadow: 0 0 12px rgba(255, 141, 141, 0.2);
}

.wiki-section-delete:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.wiki-admin-actions {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-controls {
    margin-top: 1rem;
}

.admin-controls-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.admin-register-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(99, 217, 255, 0.38);
    background: rgba(7, 15, 24, 0.75);
    color: var(--accent-cyan);
    font-size: 0.84rem;
    padding: 0.24rem 0.62rem;
    letter-spacing: 0.04em;
}

.admin-controls-copy {
    margin: 0.5rem 0 0.75rem;
    color: var(--text-muted);
}

.admin-controls-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-user-manager {
    margin-top: 1rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(99, 217, 255, 0.2);
}

.admin-user-manager h4 {
    margin: 0;
    font-size: 1.02rem;
    color: var(--gold);
}

.admin-user-create-grid {
    margin-top: 0.7rem;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-user-field {
    display: grid;
    gap: 0.32rem;
}

.admin-user-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-users-table-wrap {
    margin-top: 0.8rem;
}

.admin-users-table-wrap table {
    min-width: 560px;
}

.admin-role-select {
    min-width: 10.5rem;
}

.admin-fixed-role {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(99, 217, 255, 0.25);
    border-radius: 0.5rem;
    background: rgba(7, 15, 24, 0.68);
    color: var(--text-muted);
}

.support-card {
    margin-top: 1rem;
}

.support-auth-card {
    margin-top: 1rem;
    display: grid;
    gap: 0.6rem;
}

.support-auth-card h3 {
    margin: 0;
}

.support-create-grid {
    margin-top: 0.72rem;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-field {
    display: grid;
    gap: 0.3rem;
}

.support-field-full {
    grid-column: 1 / -1;
}

.support-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.support-grid {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.support-grid-admin {
    margin-top: 0.7rem;
}

.support-list-card,
.support-thread-card {
    border: 1px solid rgba(99, 217, 255, 0.2);
    border-radius: 0.8rem;
    background: rgba(7, 14, 22, 0.62);
    padding: 0.72rem;
}

.support-list-card h4,
.support-thread-card h4 {
    margin: 0;
    color: var(--gold);
    font-size: 0.95rem;
}

.support-ticket-list {
    margin-top: 0.65rem;
    display: grid;
    gap: 0.45rem;
}

.support-ticket-item {
    width: 100%;
    border-radius: 0.65rem;
    border: 1px solid rgba(99, 217, 255, 0.2);
    background: rgba(8, 16, 26, 0.72);
    color: var(--text-main);
    padding: 0.58rem 0.65rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.support-ticket-item:hover {
    border-color: rgba(99, 217, 255, 0.4);
}

.support-ticket-item.is-active {
    border-color: rgba(99, 217, 255, 0.58);
    box-shadow: 0 0 18px rgba(99, 217, 255, 0.16);
}

.support-ticket-head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.support-ticket-subject {
    margin: 0.38rem 0 0;
    font-size: 0.87rem;
    color: var(--text-main);
}

.support-ticket-meta {
    margin: 0.38rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.support-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.16rem 0.56rem;
    border: 1px solid rgba(99, 217, 255, 0.3);
    background: rgba(8, 16, 25, 0.72);
    color: var(--accent-cyan);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.support-badge.status-closed {
    color: #ffb4b4;
    border-color: rgba(255, 141, 141, 0.38);
}

.support-badge.status-open {
    color: #8fdcc8;
    border-color: rgba(143, 220, 200, 0.38);
}

.support-badge.priority-high {
    color: #ffd19a;
    border-color: rgba(255, 201, 138, 0.4);
}

.support-badge.priority-critical {
    color: #ff9e9e;
    border-color: rgba(255, 158, 158, 0.44);
}

.support-ticket-detail {
    margin-top: 0.65rem;
    display: grid;
    gap: 0.62rem;
}

.support-thread-meta {
    border: 1px solid rgba(99, 217, 255, 0.18);
    border-radius: 0.65rem;
    background: rgba(7, 15, 24, 0.66);
    padding: 0.62rem;
    display: grid;
    gap: 0.4rem;
}

.support-thread-meta p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.support-thread-meta strong {
    color: var(--text-main);
}

.support-messages {
    display: grid;
    gap: 0.5rem;
}

.support-message {
    border-radius: 0.65rem;
    border: 1px solid rgba(99, 217, 255, 0.16);
    background: rgba(8, 16, 26, 0.66);
    padding: 0.55rem 0.62rem;
}

.support-message.is-gm {
    border-color: rgba(255, 201, 138, 0.3);
    background: rgba(34, 20, 14, 0.56);
}

.support-message-head {
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.3rem;
}

.support-message-head strong {
    color: var(--accent-cyan);
    font-size: 0.82rem;
}

.support-message.is-gm .support-message-head strong {
    color: #ffd19a;
}

.support-message-head span {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.support-message p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.45;
}

.support-admin-filters {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) auto;
}

.support-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.support-inline-check input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

.support-status-actions {
    margin-top: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.support-status-actions label {
    color: var(--text-muted);
}

.support-status-actions select {
    width: auto;
    min-width: 180px;
}

.wiki-tools {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.wiki-tools .btn {
    padding: 0.46rem 0.66rem;
    font-size: 0.88rem;
}

.wiki-editor-toolbar {
    margin-top: 0.7rem;
    display: flex;
    gap: 0.62rem;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid rgba(99, 217, 255, 0.3);
    border-radius: 0.75rem;
    background:
        linear-gradient(180deg, rgba(10, 20, 32, 0.94) 0%, rgba(6, 14, 23, 0.92) 100%);
    box-shadow:
        inset 0 1px 0 rgba(156, 228, 255, 0.14),
        inset 0 -1px 0 rgba(10, 21, 33, 0.92),
        0 0 18px rgba(99, 217, 255, 0.08);
    padding: 0.56rem;
}

.editor-group {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem;
    border-radius: 0.58rem;
    border: 1px solid rgba(99, 217, 255, 0.2);
    background: linear-gradient(180deg, rgba(6, 12, 20, 0.84), rgba(5, 11, 18, 0.9));
}

.wiki-editor-toolbar .editor-btn {
    border-radius: 0.55rem;
    padding: 0.42rem 0.58rem;
    min-width: 2.35rem;
    border-color: rgba(99, 217, 255, 0.28);
    background: linear-gradient(180deg, rgba(18, 33, 49, 0.98), rgba(11, 21, 33, 0.98));
    color: var(--text-main);
    font-size: 0.86rem;
    letter-spacing: 0.01em;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(155, 226, 255, 0.14);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.wiki-editor-toolbar .editor-btn::before,
.wiki-editor-toolbar .editor-btn::after {
    display: none;
}

.wiki-editor-toolbar .editor-btn:hover {
    transform: none;
    border-color: rgba(132, 225, 255, 0.54);
    background: linear-gradient(180deg, rgba(24, 43, 61, 0.99), rgba(14, 27, 42, 0.99));
    box-shadow: inset 0 1px 0 rgba(182, 235, 255, 0.18), 0 0 12px rgba(99, 217, 255, 0.16);
    filter: none;
}

.wiki-editor-toolbar .editor-btn:active {
    transform: none;
    background: linear-gradient(180deg, rgba(11, 21, 34, 0.99), rgba(8, 16, 25, 0.99));
    box-shadow: inset 0 1px 0 rgba(158, 229, 255, 0.1);
}

.wiki-editor-toolbar .editor-btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(40, 79, 101, 0.5), 0 0 16px rgba(99, 217, 255, 0.26);
}

.wiki-editor-toolbar .editor-btn.is-active {
    border-color: rgba(138, 226, 255, 0.76);
    background: linear-gradient(180deg, rgba(38, 78, 110, 0.94), rgba(22, 52, 76, 0.95));
    color: #f2fbff;
    box-shadow: inset 0 1px 0 rgba(197, 242, 255, 0.28), 0 0 16px rgba(99, 217, 255, 0.28);
}

.editor-icon-btn {
    width: 2.1rem;
    height: 2rem;
    min-width: 2.1rem;
    padding: 0.28rem;
}

.editor-icon {
    display: inline-block;
    font-size: 1.05rem;
    line-height: 1;
    color: #ebf6ff;
}

.editor-icon-bold {
    font-weight: 800;
}

.editor-icon-italic {
    font-style: italic;
}

.editor-icon-underline {
    text-decoration: underline;
    text-underline-offset: 0.16rem;
}

.editor-select {
    width: auto;
    min-width: 8rem;
    border: 1px solid rgba(99, 217, 255, 0.28);
    border-radius: 0.55rem;
    color: var(--text-main);
    background:
        linear-gradient(180deg, rgba(18, 32, 47, 0.96), rgba(9, 17, 27, 0.98)),
        linear-gradient(45deg, transparent 50%, rgba(188, 236, 255, 0.88) 50%),
        linear-gradient(135deg, rgba(188, 236, 255, 0.88) 50%, transparent 50%);
    background-repeat: no-repeat;
    background-size:
        auto,
        0.42rem 0.42rem,
        0.42rem 0.42rem;
    background-position:
        0 0,
        calc(100% - 0.95rem) calc(50% + 1px),
        calc(100% - 0.65rem) calc(50% + 1px);
    padding: 0.41rem 1.6rem 0.41rem 0.6rem;
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.15;
}

.editor-select:focus {
    outline: none;
    border-color: rgba(130, 224, 255, 0.66);
    box-shadow: 0 0 0 2px rgba(42, 82, 105, 0.45), 0 0 14px rgba(99, 217, 255, 0.2);
}

.editor-align-select {
    min-width: 9.6rem;
}

.wiki-rich-editor {
    min-height: 280px;
    border: 1px solid rgba(99, 217, 255, 0.35);
    border-radius: 0.7rem;
    background: rgba(9, 17, 27, 0.8);
    padding: 0.75rem 0.85rem;
    line-height: 1.55;
    overflow-x: auto;
}

.wiki-rich-editor:focus {
    outline: none;
    border-color: rgba(99, 217, 255, 0.62);
    box-shadow: 0 0 0 1px rgba(99, 217, 255, 0.24), 0 0 22px rgba(99, 217, 255, 0.16);
}

.wiki-rich-editor p {
    margin: 0 0 0.8rem;
}

.wiki-rich-editor table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.45rem 0 0.8rem;
}

.wiki-rich-editor th,
.wiki-rich-editor td {
    border: 1px solid rgba(99, 217, 255, 0.28);
    padding: 0.4rem 0.45rem;
    min-width: 90px;
}

.wiki-rich-editor th {
    background: rgba(99, 217, 255, 0.12);
    color: var(--gold);
}

.wiki-rich-editor img {
    max-width: 100%;
    border-radius: 0.6rem;
    margin: 0.4rem 0 0.8rem;
}

.wiki-align-left {
    text-align: left;
}

.wiki-align-center {
    text-align: center;
}

.wiki-align-right {
    text-align: right;
}

.wiki-content img.wiki-align-center,
.wiki-rich-editor img.wiki-align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wiki-content img.wiki-align-right,
.wiki-rich-editor img.wiki-align-right {
    display: block;
    margin-left: auto;
    margin-right: 0;
}

.wiki-content img.wiki-align-left,
.wiki-rich-editor img.wiki-align-left {
    display: block;
    margin-left: 0;
    margin-right: auto;
}

.wiki-content .wiki-md-table-wrap.wiki-align-center .wiki-md-table,
.wiki-rich-editor .wiki-md-table-wrap.wiki-align-center .wiki-md-table {
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.wiki-content .wiki-md-table-wrap.wiki-align-right .wiki-md-table,
.wiki-rich-editor .wiki-md-table-wrap.wiki-align-right .wiki-md-table {
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: 0;
}

.wiki-content .wiki-md-table-wrap.wiki-align-left .wiki-md-table,
.wiki-rich-editor .wiki-md-table-wrap.wiki-align-left .wiki-md-table {
    width: max-content;
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
}

.auth-logged {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(99, 217, 255, 0.28);
    background: rgba(9, 16, 24, 0.62);
    color: var(--text-muted);
}

.auth-logged strong {
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.wiki-content h1,
.wiki-content h2,
.wiki-content h3,
.wiki-content h4,
.wiki-content h5,
.wiki-content h6 {
    margin: 0.95rem 0 0.6rem;
}

.wiki-content ul {
    margin: 0.35rem 0 0.9rem 1.2rem;
    padding: 0;
}

.wiki-content code {
    background: rgba(9, 17, 27, 0.9);
    border: 1px solid rgba(99, 217, 255, 0.2);
    border-radius: 0.35rem;
    padding: 0.03rem 0.32rem;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9em;
}

.wiki-content a {
    color: var(--accent-cyan);
}

.wiki-content img {
    max-width: 100%;
    border-radius: 0.65rem;
    border: 1px solid rgba(99, 217, 255, 0.24);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
    margin: 0.55rem 0 0.9rem;
}

.wiki-content .wiki-md-table-wrap {
    overflow-x: auto;
    margin: 0.6rem 0 0.9rem;
}

.wiki-content .wiki-md-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.wiki-content .wiki-md-table th,
.wiki-content .wiki-md-table td {
    border-bottom: 1px solid rgba(99, 217, 255, 0.22);
    padding: 0.5rem 0.45rem;
    text-align: left;
    white-space: normal;
    vertical-align: top;
    line-height: 1.35;
}

.wiki-content .wiki-md-table th {
    color: var(--gold);
    font-weight: 700;
}

.footer {
    border-top: 1px solid rgba(99, 217, 255, 0.2);
    margin-top: 2.8rem;
    padding: 1.1rem 1.5rem 1.8rem;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
}

.reveal {
    animation: revealUp 0.7s ease both;
}

.section-focus {
    animation: sectionFocus 620ms ease;
}

@keyframes sectionFocus {
    0% {
        opacity: 0.9;
        transform: translateY(8px) scale(0.992);
        filter: saturate(0.94) brightness(0.94);
    }
    55% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: saturate(1.04) brightness(1.03);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: saturate(1);
    }
}

@keyframes sectionHeadGlow {
    0% {
        opacity: 0.34;
        transform: translateX(-30%) rotate(2deg);
    }
    50% {
        opacity: 0.74;
        transform: translateX(4%) rotate(2deg);
    }
    100% {
        opacity: 0.34;
        transform: translateX(-30%) rotate(2deg);
    }
}

@keyframes titleGlow {
    0% {
        text-shadow:
            0 1px 0 rgba(3, 10, 16, 0.92),
            0 0 12px rgba(99, 217, 255, 0.26),
            0 0 24px rgba(99, 217, 255, 0.12);
    }
    50% {
        text-shadow:
            0 1px 0 rgba(3, 10, 16, 0.92),
            0 0 18px rgba(132, 226, 255, 0.44),
            0 0 32px rgba(132, 226, 255, 0.22);
    }
    100% {
        text-shadow:
            0 1px 0 rgba(3, 10, 16, 0.92),
            0 0 12px rgba(99, 217, 255, 0.26),
            0 0 24px rgba(99, 217, 255, 0.12);
    }
}

@keyframes kickerGlow {
    0% {
        text-shadow: 0 0 10px rgba(99, 217, 255, 0.2);
    }
    50% {
        text-shadow: 0 0 18px rgba(124, 228, 255, 0.44);
    }
    100% {
        text-shadow: 0 0 10px rgba(99, 217, 255, 0.2);
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .topbar {
        grid-template-columns: 1fr auto;
        gap: 0.72rem;
        padding: 0.75rem 0.85rem;
        justify-items: stretch;
        text-align: left;
    }

    .brand {
        justify-self: start;
    }

    .nav-shell {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto auto;
        justify-content: space-between;
        align-items: center;
        gap: 0.6rem;
        position: relative;
    }

    .online-sidebar-chip {
        grid-column: 1;
        grid-row: 1;
    }

    .launch-chip {
        grid-column: 1;
        grid-row: 2;
    }

    .lang-wrap {
        width: auto;
        justify-content: flex-end;
        justify-self: end;
        grid-column: 2;
        grid-row: 1;
    }

    .nav-menu-btn {
        display: inline-flex;
        justify-self: end;
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .nav {
        display: none;
        width: 100%;
        grid-column: 1 / -1;
        grid-row: 3;
        flex-direction: column;
        align-items: stretch;
        gap: 0.28rem;
        margin-top: 0.15rem;
        padding: 0.55rem;
        border: 1px solid rgba(99, 217, 255, 0.2);
        border-radius: 1rem;
        background: rgba(6, 14, 22, 0.94);
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        display: block;
        padding: 0.6rem 0.72rem;
        border-radius: 0.8rem;
        background: rgba(99, 217, 255, 0.05);
        text-align: left;
    }

    .download-grid,
    .news-grid,
    .events-list,
    .tournaments-grid,
    .wiki-grid,
    .ranking-grid,
    .auth-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .support-create-grid,
    .support-admin-filters {
        grid-template-columns: 1fr;
    }

    .events-view-switch {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 0.85rem;
    }

    .events-view-tab {
        justify-content: center;
        text-align: center;
        border-radius: 0.68rem;
        padding: 0.52rem 0.65rem;
        letter-spacing: 0.05em;
    }

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

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

    .api-box {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 2.35rem;
        padding-bottom: 2.2rem;
    }

    .footer {
        flex-direction: column;
        gap: 0.35rem;
    }

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

    #inicio,
    #news,
    #eventos,
    #descargas,
    #wiki,
    #ranking,
    #portal,
    #soporte {
        scroll-margin-top: 9.2rem;
    }

    .news-admin-grid,
    .wiki-admin-grid {
        grid-template-columns: 1fr;
    }

    .discord-news-frame {
        min-height: 320px;
    }

    .wiki-admin-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .wiki-admin-head-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-user-create-grid {
        grid-template-columns: 1fr;
    }

    .support-status-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .session-chip {
        justify-self: start;
    }

    #sessionBadge {
        grid-column: 1 / -1;
    }

    .app-toast {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        max-width: none;
    }

    .event-meta-grid,
    .tournament-bracket {
        grid-template-columns: 1fr;
    }

    .tournament-round {
        min-width: 0;
    }

    .tournament-round-matches {
        gap: 0.85rem;
        padding-top: 0;
    }

    .tournament-match-shell::before,
    .tournament-match-shell::after,
    .tournament-match::before,
    .tournament-match::after {
        display: none;
    }

    .event-modal {
        padding: 0.75rem;
    }

    .event-modal-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-register-progress {
        width: 100%;
        border-radius: 0.82rem;
        justify-content: flex-start;
    }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
    .card::before {
        display: none;
    }

    .section-head::before {
        display: none;
    }

    .section-head h2,
    .hero h1,
    .kicker {
        animation: none;
    }
}

@media (max-width: 560px) {
    :root {
        --container-width: calc(100% - 1rem);
    }

    .brand-text {
        font-size: 0.9rem;
    }

    .nav a,
    .nav-menu-btn {
        font-size: 0.92rem;
    }

    .lang-wrap {
        gap: 0.42rem;
    }

    .hero {
        padding-top: 1.8rem;
        padding-bottom: 1.8rem;
    }

    .brand-logo {
        width: 1.95rem;
        height: 1.95rem;
    }

    .hero-logo-shell {
        width: min(340px, 88vw);
    }

    .ranking-table-wide {
        min-width: 760px;
    }

    .wiki-list {
        grid-template-columns: 1fr;
    }

    .hero-steam-cta {
        padding: 0.58rem 1rem;
        font-size: 0.92rem;
        gap: 0.56rem;
    }

    .steam-icon-wrap {
        width: 2.2rem;
        height: 2.2rem;
    }

    h1 {
        font-size: clamp(1.7rem, 8.6vw, 2.25rem);
    }

    .hero-copy {
        font-size: 1rem;
        line-height: 1.45;
        margin-bottom: 1.2rem;
    }

    .events,
    .news,
    .downloads,
    .wiki,
    .ranking,
    .portal,
    .support-page {
        margin-top: 2rem;
    }

    .portal,
    .support-page {
        padding: 0.85rem;
    }

    .card {
        padding: 0.9rem;
    }

    .btn {
        padding: 0.56rem 0.72rem;
        font-size: 0.92rem;
    }

    .wiki-editor-toolbar .editor-btn {
        padding: 0.42rem 0.56rem;
        min-width: 2.4rem;
    }

    .editor-group {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .editor-align-select,
    .editor-select {
        min-width: 6.7rem;
    }

    th,
    td {
        font-size: 0.9rem;
        padding: 0.5rem 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .arcane-canvas,
    .fog,
    .embers {
        display: none !important;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.seo-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
