:root {
    --hub-bg: #05070c;
    --hub-bg-soft: #0b0f18;
    --hub-panel: rgba(14, 19, 30, 0.86);
    --hub-panel-strong: rgba(18, 25, 39, 0.94);
    --hub-line: rgba(255, 255, 255, 0.11);
    --hub-line-bright: rgba(255, 255, 255, 0.2);
    --hub-text: #d8e0ea;
    --hub-muted: #8a98aa;
    --hub-white: #ffffff;
    --hub-blue: #39d5ff;
    --hub-green: #22c55e;
    --hub-amber: #f6b73c;
    --hub-red: #ff5a6d;
    --hub-violet: #a78bfa;
    --hub-pink: #ff5da8;
    --hub-orange: #ff7a45;
    --hub-radius: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--hub-text);
    background:
        radial-gradient(circle at 16% 9%, rgba(57, 213, 255, 0.15), transparent 29%),
        radial-gradient(circle at 88% 13%, rgba(255, 122, 69, 0.12), transparent 26%),
        radial-gradient(circle at 72% 86%, rgba(34, 197, 94, 0.11), transparent 31%),
        linear-gradient(180deg, #05070c 0%, #08111e 46%, #06080d 100%);
    font-family: "Outfit", system-ui, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

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

.hub-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 10%, rgba(57, 213, 255, 0.14), transparent 28%),
        radial-gradient(circle at 84% 16%, rgba(246, 183, 60, 0.11), transparent 24%),
        radial-gradient(circle at 35% 86%, rgba(255, 93, 168, 0.09), transparent 28%),
        radial-gradient(circle at 76% 82%, rgba(34, 197, 94, 0.1), transparent 30%);
}

.hub-grid {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
}

.hub-scan {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(57, 213, 255, 0.58), transparent);
    opacity: 0.5;
}

.hub-scan-a {
    top: 22%;
    animation: scanMove 11s linear infinite;
}

.hub-scan-b {
    top: 70%;
    background: linear-gradient(90deg, transparent, rgba(246, 183, 60, 0.42), transparent);
    animation: scanMove 15s linear infinite reverse;
}

@keyframes scanMove {
    0% { transform: translateX(-28%); }
    100% { transform: translateX(28%); }
}

.academy-wrap.hub-wrap {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 46px 24px 112px;
}

.hub-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(57, 213, 255, 0.38);
    border-radius: var(--hub-radius);
    color: var(--hub-blue);
    background: rgba(57, 213, 255, 0.09);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guest-hero {
    min-height: calc(100vh - 70px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 42px;
    padding: 32px 0;
}

.guest-copy h1 {
    max-width: 760px;
    margin: 18px 0 16px;
    color: var(--hub-white);
    font-size: 3.1rem;
    line-height: 1.02;
    letter-spacing: 0;
}

.guest-copy p {
    max-width: 680px;
    margin: 0;
    color: #aab7c7;
    font-size: 1.08rem;
}

.guest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: var(--hub-radius);
    border: 1px solid transparent;
    font-weight: 900;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
}

.btn-cta.primary {
    color: #041016;
    background: linear-gradient(135deg, var(--hub-blue), #8ee6ff);
    box-shadow: 0 12px 26px rgba(57, 213, 255, 0.22);
}

.btn-cta.secondary {
    color: var(--hub-white);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--hub-line);
}

.guest-sim-panel {
    min-height: 470px;
    padding: 18px;
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
        rgba(9, 13, 22, 0.9);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.sim-topline,
.sim-readouts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sim-topline {
    color: #aebace;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sim-topline strong {
    color: var(--hub-green);
}

.sim-radar {
    position: relative;
    min-height: 340px;
    margin: 18px 0;
    border: 1px solid rgba(57, 213, 255, 0.18);
    border-radius: var(--hub-radius);
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(57, 213, 255, 0.12), transparent 56%),
        #071018;
    background-size: 32px 32px, 32px 32px, auto, auto;
}

.radar-ring,
.radar-path,
.radar-drone,
.radar-check {
    position: absolute;
    display: block;
}

.radar-ring {
    inset: 16%;
    border: 1px solid rgba(57, 213, 255, 0.26);
    border-radius: 999px;
}

.ring-2 {
    inset: 31%;
}

.radar-path {
    left: 18%;
    right: 18%;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0), var(--hub-green), var(--hub-blue), rgba(57, 213, 255, 0));
    transform: rotate(-18deg);
    box-shadow: 0 0 18px rgba(57, 213, 255, 0.35);
}

.radar-drone {
    width: 30px;
    height: 30px;
    left: 46%;
    top: 42%;
    border: 2px solid var(--hub-blue);
    border-radius: 50%;
    background: rgba(57, 213, 255, 0.18);
    box-shadow: 0 0 24px rgba(57, 213, 255, 0.55);
    animation: dronePulse 1.7s ease-in-out infinite;
}

.radar-drone::before,
.radar-drone::after {
    content: "";
    position: absolute;
    inset: 11px -18px;
    height: 4px;
    background: var(--hub-blue);
    border-radius: 999px;
}

.radar-drone::after {
    transform: rotate(90deg);
}

.radar-check {
    width: 14px;
    height: 14px;
    border: 2px solid var(--hub-green);
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.18);
}

.cp-1 { left: 22%; top: 60%; }
.cp-2 { left: 48%; top: 46%; }
.cp-3 { right: 20%; top: 33%; }

@keyframes dronePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.sim-readouts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sim-readouts span {
    min-height: 48px;
    padding: 9px;
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius);
    background: rgba(255, 255, 255, 0.045);
    color: #cbd5e1;
    font-size: 0.85rem;
}

.sim-readouts strong {
    display: block;
    color: var(--hub-muted);
    font-size: 0.68rem;
    text-transform: uppercase;
}

.guest-worlds,
.categories-grid,
.hub-actions,
.char-stats {
    display: grid;
    gap: 14px;
}

.guest-worlds,
.categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guest-world-card,
.cat-card,
.hero-character,
.info-banner,
.map-world-header,
.hub-action {
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
        var(--hub-panel);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
}

.guest-world-card {
    min-height: 210px;
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.guest-world-card::before,
.cat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--cat-color);
}

.guest-world-card h2,
.cat-nombre {
    margin: 12px 0 8px;
    color: var(--hub-white);
    font-size: 1.05rem;
    line-height: 1.2;
}

.guest-world-card p {
    margin: 0 0 14px;
    color: var(--hub-muted);
    font-size: 0.9rem;
}

.guest-world-card span {
    color: rgb(var(--cat-rgb));
    font-weight: 900;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.hero-character {
    padding: 22px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.char-avatar {
    position: relative;
    width: 104px;
    height: 104px;
    flex: 0 0 auto;
}

.char-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(var(--rank-color) var(--xp-percent), rgba(255, 255, 255, 0.08) 0);
    filter: drop-shadow(0 0 16px color-mix(in srgb, var(--rank-color) 40%, transparent));
}

.char-body {
    position: absolute;
    inset: 6px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--hub-line-bright);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(57, 213, 255, 0.18), rgba(34, 197, 94, 0.1));
}

.char-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initial {
    color: var(--hub-white);
    font-size: 2.4rem;
    font-weight: 900;
}

.char-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--hub-line-bright);
    border-radius: var(--hub-radius);
    color: var(--hub-amber);
    background: var(--hub-panel-strong);
    font-weight: 900;
}

.char-rank {
    color: var(--hub-blue);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.char-name {
    margin: 4px 0 2px;
    color: var(--hub-white);
    font-size: 2.2rem;
    line-height: 1.05;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.char-titulo {
    margin: 0 0 14px;
    color: var(--hub-muted);
}

.xp-bar-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    max-width: 680px;
}

.xp-lvl,
.xp-label {
    white-space: nowrap;
    font-family: "Share Tech Mono", monospace;
    font-weight: 900;
}

.xp-lvl {
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(57, 213, 255, 0.28);
    border-radius: var(--hub-radius);
    color: var(--hub-blue);
    background: rgba(57, 213, 255, 0.08);
}

.xp-label {
    color: #b7c4d5;
}

.xp-bar {
    height: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.xp-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hub-green), var(--hub-blue));
    box-shadow: 0 0 18px rgba(57, 213, 255, 0.42);
    transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.char-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--hub-radius);
    background: rgba(255, 255, 255, 0.045);
}

.sp-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--hub-radius);
    background: rgba(255, 255, 255, 0.06);
    font-weight: 900;
}

.sp-life { color: var(--hub-red); }
.sp-coins { color: var(--hub-amber); }
.sp-streak { color: var(--hub-green); }
.sp-stars { color: var(--hub-amber); }

.sp-val {
    color: var(--hub-white);
    font-family: "Share Tech Mono", monospace;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
}

.sp-label {
    margin-top: 3px;
    color: var(--hub-muted);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hub-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 14px 0 22px;
}

.hub-action {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-height: 76px;
    padding: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    isolation: isolate;
    position: relative;
    overflow: hidden;
}

.hub-action::after {
    content: "";
    position: absolute;
    inset: auto -34px -46px auto;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--ha-rgb, 57, 213, 255), 0.24), transparent 64%);
    z-index: -1;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.hub-action:hover::after {
    opacity: 0.95;
    transform: scale(1.12);
}

.hub-action:nth-child(1) { --ha-color: var(--hub-blue); --ha-rgb: 57,213,255; }
.hub-action:nth-child(2) { --ha-color: var(--hub-green); --ha-rgb: 34,197,94; }
.hub-action:nth-child(3) { --ha-color: var(--hub-amber); --ha-rgb: 246,183,60; }
.hub-action:nth-child(4) { --ha-color: var(--hub-pink); --ha-rgb: 255,93,168; }

.hub-action:nth-child(1),
.hub-action:nth-child(2),
.hub-action:nth-child(3),
.hub-action:nth-child(4) {
    border-color: rgba(var(--ha-rgb), 0.28);
}

.hub-action:hover,
.cat-card:hover,
.guest-world-card:hover {
    transform: translateY(-3px);
    border-color: rgba(57, 213, 255, 0.35);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent),
        var(--hub-panel-strong);
}

.ha-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--hub-radius);
    color: var(--ha-color, var(--hub-blue));
    background: rgba(var(--ha-rgb, 57, 213, 255), 0.11);
    box-shadow: inset 0 0 0 1px rgba(var(--ha-rgb, 57, 213, 255), 0.24);
    font-weight: 900;
}

.hub-action strong,
.hub-action small {
    display: block;
    min-width: 0;
}

.hub-action strong {
    color: var(--hub-white);
    font-weight: 900;
}

.hub-action small {
    color: var(--hub-muted);
    font-size: 0.82rem;
}

.info-banner {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    margin-bottom: 22px;
}

.mission-banner {
    border-color: rgba(var(--mc-rgb), 0.32);
}

.ib-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(57, 213, 255, 0.28);
    border-radius: var(--hub-radius);
    color: var(--hub-blue);
    background: rgba(57, 213, 255, 0.08);
    font-weight: 900;
}

.ib-text strong {
    display: block;
    color: var(--hub-white);
    font-size: 1rem;
}

.ib-text p {
    margin: 3px 0 0;
    color: var(--hub-muted);
}

.hub-guide {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 24px;
}

.guide-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    min-height: 132px;
    padding: 15px;
    overflow: hidden;
    border: 1px solid rgba(var(--guide-rgb), 0.3);
    border-radius: var(--hub-radius);
    background:
        linear-gradient(180deg, rgba(var(--guide-rgb), 0.1), transparent 72%),
        rgba(12, 18, 30, 0.88);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
    animation: hubEnter 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.guide-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -42px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--guide-rgb), 0.24), transparent 65%);
}

.guide-index {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--hub-radius);
    color: #061018;
    background: var(--guide-color);
    font-family: "Share Tech Mono", monospace;
    font-size: 1.05rem;
    font-weight: 900;
    box-shadow: 0 0 20px rgba(var(--guide-rgb), 0.34);
}

.guide-card strong {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--hub-white);
    font-size: 0.98rem;
    font-weight: 900;
}

.guide-card p {
    position: relative;
    z-index: 1;
    margin: 5px 0 0;
    color: #a8b5c7;
    font-size: 0.86rem;
    line-height: 1.42;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    color: var(--hub-white);
    font-size: 1.12rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.st-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent);
}

.cat-card {
    position: relative;
    min-height: 245px;
    padding: 18px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    isolation: isolate;
}

.cat-card::after {
    content: "";
    position: absolute;
    right: -46px;
    bottom: -46px;
    width: 140px;
    height: 140px;
    border: 1px solid rgba(var(--cat-rgb), 0.3);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(var(--cat-rgb), 0.22), transparent 58%),
        repeating-conic-gradient(from 0deg, rgba(var(--cat-rgb), 0.25) 0 8deg, transparent 8deg 22deg);
    opacity: 0.42;
    z-index: -1;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.cat-card:hover::after {
    transform: scale(1.12) rotate(18deg);
    opacity: 0.68;
}

.cat-header {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.cat-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(var(--cat-rgb), 0.35);
    border-radius: var(--hub-radius);
    background: rgba(var(--cat-rgb), 0.12);
    font-size: 1.6rem;
}

.cat-desc {
    min-height: 74px;
    margin: 16px 0 20px;
    color: var(--hub-muted);
    font-size: 0.94rem;
}

.cat-progress {
    margin-top: auto;
}

.cat-bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.cat-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--cat-color);
    box-shadow: 0 0 16px rgba(var(--cat-rgb), 0.42);
}

.cat-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    color: var(--hub-muted);
    font-size: 0.85rem;
    font-weight: 900;
}

.cat-pct {
    color: rgb(var(--cat-rgb));
}

.cat-stars {
    color: var(--hub-amber);
}

.cat-levels {
    color: var(--hub-muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.map-section {
    animation: hubEnter 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.map-world-header {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    margin-bottom: 14px;
    border-color: rgba(var(--mc-rgb), 0.32);
}

.mwh-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: var(--hub-radius);
    background: rgba(var(--mc-rgb), 0.16);
    box-shadow: inset 0 0 0 1px rgba(var(--mc-rgb), 0.35);
    font-size: 1.85rem;
}

.mwh-info span {
    color: rgb(var(--mc-rgb));
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mwh-info h2 {
    margin: 2px 0;
    color: var(--hub-white);
    font-size: 1.6rem;
    line-height: 1.15;
}

.mwh-info p {
    margin: 0;
    color: var(--hub-muted);
}

.mwh-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius);
    color: var(--hub-white);
    background: rgba(255, 255, 255, 0.055);
    font-weight: 900;
}

.level-path {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 940px;
    margin: 0 auto;
    padding: 8px 0 50px;
}

.level-path::before {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 70px;
    left: 28px;
    width: 2px;
    background: linear-gradient(180deg, rgba(var(--mc-rgb), 0.4), rgba(255, 255, 255, 0.06));
}

.lp-row {
    position: relative;
    z-index: 1;
    animation: rowEnter 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--row-index, 1) * 34ms);
}

.lp-node {
    display: grid;
    grid-template-columns: 56px 82px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 74px;
    padding: 10px 14px 10px 10px;
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius);
    background: rgba(10, 15, 24, 0.9);
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.lp-node:hover {
    transform: translateX(4px);
    border-color: rgba(var(--mc-rgb), 0.55);
}

.lp-node.available {
    border-color: rgba(var(--mc-rgb), 0.45);
    box-shadow: 0 0 0 1px rgba(var(--mc-rgb), 0.12), 0 16px 36px rgba(0, 0, 0, 0.24);
}

.lp-node.completed {
    border-color: rgba(34, 197, 94, 0.42);
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.11), rgba(10, 15, 24, 0.9));
}

.lp-node.locked {
    opacity: 0.56;
    cursor: not-allowed;
}

.lp-node.boss-node {
    border-color: rgba(246, 183, 60, 0.48);
    background: linear-gradient(90deg, rgba(246, 183, 60, 0.12), rgba(10, 15, 24, 0.9));
}

.lp-node.type-flight_drill {
    border-color: rgba(57, 213, 255, 0.52);
}

.node-num,
.node-type-icon {
    display: grid;
    place-items: center;
    border-radius: var(--hub-radius);
    font-weight: 900;
}

.node-num {
    width: 48px;
    height: 48px;
    color: var(--hub-white);
    background: rgba(var(--mc-rgb), 0.2);
    box-shadow: inset 0 0 0 1px rgba(var(--mc-rgb), 0.35);
    font-family: "Share Tech Mono", monospace;
    font-size: 1.2rem;
}

.node-type-icon {
    min-height: 32px;
    padding: 0 8px;
    color: rgb(var(--mc-rgb));
    background: rgba(var(--mc-rgb), 0.11);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.node-label {
    min-width: 0;
}

.node-label strong,
.node-label-type {
    display: block;
}

.node-label strong {
    color: var(--hub-white);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.node-label-type {
    margin-top: 2px;
    color: var(--hub-muted);
    font-size: 0.84rem;
}

.node-stars,
.node-lock {
    justify-self: end;
}

@media (min-width: 920px) {
    .level-path {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
        max-width: 1180px;
        padding: 22px;
        border: 1px solid rgba(var(--mc-rgb), 0.24);
        border-radius: var(--hub-radius);
        background:
            linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
            radial-gradient(circle at 50% 50%, rgba(var(--mc-rgb), 0.1), transparent 56%),
            rgba(6, 10, 17, 0.72);
        background-size: 34px 34px, 34px 34px, auto, auto;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 26px 70px rgba(0, 0, 0, 0.28);
    }

    .level-path::before {
        top: 50%;
        bottom: auto;
        left: 22px;
        right: 22px;
        width: auto;
        height: 2px;
        background: linear-gradient(90deg, rgba(var(--mc-rgb), 0.05), rgba(var(--mc-rgb), 0.46), rgba(var(--mc-rgb), 0.05));
        box-shadow: 0 0 20px rgba(var(--mc-rgb), 0.24);
    }

    .level-path::after {
        content: "";
        position: absolute;
        inset: 22px;
        border-radius: var(--hub-radius);
        background:
            radial-gradient(circle at 12% 24%, rgba(34, 197, 94, 0.16), transparent 12%),
            radial-gradient(circle at 76% 32%, rgba(246, 183, 60, 0.12), transparent 13%),
            radial-gradient(circle at 62% 76%, rgba(57, 213, 255, 0.12), transparent 12%);
        pointer-events: none;
    }

    .lp-row {
        min-width: 0;
    }

    .lp-node {
        grid-template-columns: 1fr;
        grid-template-rows: 48px auto auto 24px;
        justify-items: start;
        align-content: start;
        min-height: 178px;
        padding: 14px;
    }

    .lp-node:hover {
        transform: translateY(-5px);
    }

    .node-num {
        position: relative;
        z-index: 1;
    }

    .node-num::after {
        content: "";
        position: absolute;
        inset: -7px;
        border: 1px solid rgba(var(--mc-rgb), 0.25);
        border-radius: inherit;
        opacity: 0;
        transform: scale(0.85);
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .lp-node.available .node-num::after {
        opacity: 1;
        transform: scale(1);
        animation: mapPulse 1.8s ease-in-out infinite;
    }

    .node-type-icon,
    .node-label,
    .node-stars,
    .node-lock {
        justify-self: start;
    }

    .node-label strong {
        min-height: 38px;
    }

    .node-stars,
    .node-lock {
        align-self: end;
    }
}

@keyframes mapPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(var(--mc-rgb), 0); }
    50% { box-shadow: 0 0 22px rgba(var(--mc-rgb), 0.36); }
}

.node-stars {
    display: inline-flex;
    gap: 4px;
    color: rgba(255, 255, 255, 0.16);
}

.node-stars .earned {
    color: var(--hub-amber);
    filter: drop-shadow(0 0 7px rgba(246, 183, 60, 0.5));
}

.node-lock {
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--hub-radius);
    color: var(--hub-muted);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 70px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--hub-line);
    background: rgba(7, 11, 18, 0.88);
    backdrop-filter: blur(18px);
}

.tn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius);
    color: var(--hub-white);
    background: rgba(255, 255, 255, 0.055);
    font-weight: 900;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.tn-back:hover {
    transform: translateX(-2px);
    border-color: rgba(57, 213, 255, 0.4);
}

.tn-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.misiones-wrap,
.logros-wrap {
    width: min(980px, 100%);
    margin: 42px auto 112px;
    padding: 0 22px;
}

.m-hero,
.l-hero {
    text-align: left;
    margin-bottom: 22px;
}

.m-hero h1,
.l-hero h1 {
    margin: 0;
    color: var(--hub-white);
    font-size: 2.35rem;
    line-height: 1.08;
}

.m-hero p,
.l-hero p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--hub-muted);
    font-size: 1rem;
}

.m-timer {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin-top: 16px;
    padding: 0 12px;
    border: 1px solid rgba(57, 213, 255, 0.28);
    border-radius: var(--hub-radius);
    color: var(--hub-blue);
    background: rgba(57, 213, 255, 0.08);
    font-family: "Share Tech Mono", monospace;
    font-weight: 900;
}

.mis-list,
.logros-grid {
    display: grid;
    gap: 14px;
}

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

.logros-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.mis-card,
.log-card {
    position: relative;
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
        var(--hub-panel);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.mis-card {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.mis-card.completed {
    border-color: rgba(34, 197, 94, 0.38);
    background:
        linear-gradient(90deg, rgba(34, 197, 94, 0.1), transparent),
        var(--hub-panel);
}

.mis-card.claimed {
    opacity: 0.58;
}

.mc-icon,
.lc-icon {
    display: grid;
    place-items: center;
    border-radius: var(--hub-radius);
    font-weight: 900;
}

.mc-icon {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(57, 213, 255, 0.26);
    color: var(--hub-blue);
    background: rgba(57, 213, 255, 0.09);
    font-size: 1.1rem;
}

.mc-title,
.lc-title {
    color: var(--hub-white);
    font-weight: 900;
}

.mc-reward {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin: 8px 0 10px;
    padding: 0 8px;
    border-radius: var(--hub-radius);
    color: var(--hub-amber);
    background: rgba(246, 183, 60, 0.1);
    font-size: 0.84rem;
    font-weight: 900;
}

.mc-prog-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 12px;
    align-items: center;
}

.mc-bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.mc-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hub-green), var(--hub-blue));
}

.mc-val {
    color: var(--hub-muted);
    font-family: "Share Tech Mono", monospace;
    font-weight: 900;
    text-align: right;
}

.btn-claim {
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--hub-radius);
    color: #071018;
    background: linear-gradient(135deg, var(--hub-amber), #ffd98a);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.log-card {
    min-height: 210px;
    padding: 18px 14px;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.log-card:hover {
    transform: translateY(-3px);
    border-color: rgba(57, 213, 255, 0.34);
}

.log-card.locked {
    opacity: 0.54;
    filter: grayscale(0.75);
}

.log-card.unlocked {
    border-color: rgba(246, 183, 60, 0.4);
    background:
        linear-gradient(180deg, rgba(246, 183, 60, 0.1), transparent),
        var(--hub-panel);
}

.lc-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border: 1px solid rgba(246, 183, 60, 0.32);
    color: var(--hub-amber);
    background: rgba(246, 183, 60, 0.1);
    font-size: 1rem;
}

.lc-desc {
    margin-top: 8px;
    color: var(--hub-muted);
    font-size: 0.86rem;
}

#toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 21000;
    padding: 12px 16px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: var(--hub-radius);
    color: var(--hub-white);
    background: rgba(10, 18, 14, 0.96);
    font-weight: 900;
    transform: translateX(150%);
    transition: transform 0.28s ease;
}

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

@keyframes rowEnter {
    from { opacity: 0; transform: translateX(-14px); }
    to { opacity: 1; transform: translateX(0); }
}

.hub-reveal {
    opacity: 0;
    transform: translateY(16px);
}

.hub-reveal.is-visible {
    opacity: 1;
    transition: opacity 0.48s ease, transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-reveal.is-visible:not(:hover) {
    transform: translateY(0);
}

@media (max-width: 1180px) {
    .guest-worlds,
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 980px) {
    .academy-wrap.hub-wrap {
        padding: 82px 18px 116px;
    }

    .guest-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .guest-copy h1 {
        font-size: 2.35rem;
    }

    .guest-sim-panel {
        min-height: 380px;
    }

    .sim-radar {
        min-height: 250px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .xp-bar-wrap {
        margin: 0 auto;
    }

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

    .map-world-header {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
}

@media (max-width: 660px) {
    .academy-wrap.hub-wrap {
        padding-inline: 14px;
    }

    .guest-copy h1 {
        font-size: 2rem;
    }

    .guest-copy p {
        font-size: 1rem;
    }

    .guest-actions,
    .btn-cta {
        width: 100%;
    }

    .guest-worlds,
    .categories-grid,
    .hub-actions,
    .hub-guide,
    .char-stats,
    .sim-readouts {
        grid-template-columns: 1fr;
    }

    .hero-character,
    .cat-card,
    .guest-world-card,
    .info-banner,
    .map-world-header {
        padding: 14px;
    }

    .char-name {
        font-size: 1.7rem;
    }

    .xp-bar-wrap {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .xp-lvl,
    .xp-label {
        text-align: center;
    }

    .cat-desc {
        min-height: 0;
    }

    .top-nav {
        min-height: 62px;
        padding: 10px 12px;
    }

    .misiones-wrap,
    .logros-wrap {
        margin-top: 28px;
        padding: 0 14px;
    }

    .m-hero h1,
    .l-hero h1 {
        font-size: 1.9rem;
    }

    .mis-card {
        grid-template-columns: 1fr;
    }

    .mc-icon {
        width: 48px;
        height: 48px;
    }

    .mc-prog-wrap {
        grid-template-columns: 1fr;
    }

    .mc-val {
        text-align: left;
    }

    .btn-claim {
        width: 100%;
    }

    .level-path::before {
        left: 24px;
    }

    .lp-node {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 8px 12px;
        padding: 10px;
    }

    .node-num {
        grid-row: 1 / 4;
        width: 44px;
        height: 44px;
    }

    .node-type-icon,
    .node-label,
    .node-stars,
    .node-lock {
        grid-column: 2;
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}
