html,
body {
    margin: 0;
    min-height: 100%;
    background: #0b2574;
    color: #fff;
}

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

body.lunarte-universo-page {
    overflow-x: hidden;
}

.lu-home {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 34%, rgba(58, 102, 224, 0.35) 0%, rgba(31, 69, 175, 0.17) 30%, transparent 51%),
        linear-gradient(180deg, #071b64 0%, #0d2f89 57%, #173f9d 100%);
}

body.admin-bar .lu-home {
    min-height: calc(100svh - 32px);
}

.lu-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.lu-fx {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.lu-nav {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
}

.lu-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 230, 105, 0.50);
    border-radius: 999px;
    color: #fff;
    background: rgba(9, 34, 112, 0.46);
    font: 700 15px/1.1 system-ui, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.lu-nav__link:hover,
.lu-nav__link:focus-visible {
    transform: translateY(-2px) scale(1.04);
    background: rgba(37, 75, 178, 0.58);
    box-shadow: 0 0 20px rgba(255, 225, 90, 0.34);
    outline: none;
}

.lu-nav__link.is-active {
    color: #102b76;
    background: linear-gradient(180deg, #ffeb7d, #ffd13c);
    border-color: rgba(255, 239, 157, 0.96);
    box-shadow: 0 0 24px rgba(255, 218, 65, 0.38);
}

.lu-scene {
    position: relative;
    z-index: 5;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 78px 16px 92px;
}

body.admin-bar .lu-scene {
    min-height: calc(100svh - 32px);
}

.lu-brand-group {
    position: relative;
    width: min(94vw, 640px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateY(-1vh);
}

.lu-moon-area {
    position: relative;
    width: clamp(250px, 30vw, 330px);
    height: clamp(250px, 30vw, 330px);
    flex: 0 0 auto;
    margin: 0 auto;
}

.lu-moon-float {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    animation: lu-moon-float 8s ease-in-out infinite;
}

.lu-moon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none !important;
    animation: none !important;
    filter: drop-shadow(0 0 13px rgba(255, 255, 255, 0.32)) drop-shadow(0 0 30px rgba(94, 148, 255, 0.35));
    user-select: none;
    -webkit-user-drag: none;
}

.lu-brush {
    position: absolute;
    z-index: 5;
    width: 64%;
    height: auto;
    left: 28%;
    top: 17%;
    transform: translate3d(0, 0, 0) rotate(0deg);
    transform-origin: 52% 52%;
    filter: drop-shadow(0 5px 8px rgba(5, 18, 69, 0.27));
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.lu-title-window {
    position: relative;
    z-index: 4;
    width: min(72vw, 600px);
    aspect-ratio: 2.72 / 1;
    margin: -3px auto 0;
    overflow: hidden;
}

.lu-title {
    position: absolute;
    display: block;
    width: 100%;
    height: auto;
    left: 50%;
    top: 53.2%;
    margin: 0;
    transform: translate(-50%, -53.2%);
    filter: drop-shadow(0 4px 7px rgba(6, 18, 65, 0.23));
    user-select: none;
    -webkit-user-drag: none;
}

.lu-title-text {
    position: relative;
    z-index: 4;
    margin: 2px auto 0;
    color: #fff;
    font: 700 clamp(50px, 8vw, 78px)/1 system-ui, sans-serif;
}

.lu-tagline {
    position: relative;
    z-index: 5;
    margin: 5px 0 0;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.94);
    font: 500 clamp(13px, 1.4vw, 18px)/1.35 system-ui, sans-serif;
    letter-spacing: 0.055em;
    text-align: center;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.20);
}

.lu-clouds {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 105px;
    overflow: hidden;
    pointer-events: none;
}

.lu-cloud {
    position: absolute;
    bottom: -34px;
    width: 240px;
    height: 92px;
    border-radius: 50% 50% 0 0;
    background: rgba(224, 239, 255, 0.88);
    filter: drop-shadow(0 0 18px rgba(183, 203, 255, 0.24));
    animation: lu-cloud-drift 24s ease-in-out infinite alternate;
}

.lu-cloud::before,
.lu-cloud::after {
    content: "";
    position: absolute;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
}

.lu-cloud::before {
    left: 32px;
    width: 92px;
    height: 72px;
}

.lu-cloud::after {
    left: 108px;
    width: 110px;
    height: 82px;
}

.lu-cloud--1 { left: -54px; }
.lu-cloud--2 { right: 8%; bottom: -48px; width: 300px; animation-duration: 30s; }
.lu-cloud--3 { right: -84px; bottom: -32px; width: 220px; animation-duration: 27s; }

.lu-paint-mark {
    position: absolute;
    z-index: 3;
    width: var(--paint-size);
    height: calc(var(--paint-size) * 0.72);
    pointer-events: none;
    border-radius: 58% 42% 63% 37% / 54% 48% 52% 46%;
    background: radial-gradient(circle at 32% 30%, #fff9ac 0 14%, #ffe33e 28%, #ffc800 70%, #f0aa00 100%);
    box-shadow: 0 0 9px rgba(255, 221, 45, 0.80);
    transform: translate(-50%, -50%) rotate(var(--paint-rotation)) scale(0.22);
    animation: lu-paint-mark 1550ms ease-out forwards;
}

.lu-paint-dot {
    position: absolute;
    z-index: 3;
    width: var(--paint-size);
    height: var(--paint-size);
    pointer-events: none;
    border-radius: 50%;
    background: #ffe43c;
    box-shadow: 0 0 6px rgba(255, 220, 45, 0.75);
    transform: translate(-50%, -50%) scale(0.3);
    animation: lu-paint-dot 1100ms ease-out forwards;
}

@keyframes lu-moon-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -6px, 0); }
}

@keyframes lu-cloud-drift {
    from { transform: translateX(-10px); }
    to { transform: translateX(18px); }
}

@keyframes lu-paint-mark {
    0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--paint-rotation)) scale(0.18); }
    15% { opacity: 1; }
    65% { opacity: 0.95; transform: translate(-50%, -50%) rotate(var(--paint-rotation)) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--paint-rotation)) scale(1.20); }
}

@keyframes lu-paint-dot {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.25); }
    18% { opacity: 1; }
    100% { opacity: 0; transform: translate(calc(-50% + var(--paint-x)), calc(-50% + var(--paint-y))) scale(0.85); }
}

@media (max-width: 900px) {
    .lu-moon-area {
        width: clamp(245px, 43vw, 315px);
        height: clamp(245px, 43vw, 315px);
    }
    .lu-title-window { width: min(78vw, 560px); }
}

@media (max-width: 767px) {
    body.admin-bar .lu-home,
    body.admin-bar .lu-scene { min-height: calc(100svh - 46px); }

    .lu-nav { top: 10px; gap: 5px; padding: 0 6px; }
    .lu-nav__link { min-height: 39px; padding: 8px 9px; font-size: 12px; }
    .lu-scene { padding: 62px 8px 78px; align-items: center; }
    .lu-brand-group { width: min(97vw, 430px); transform: translateY(-0.5vh); }
    .lu-moon-area { width: min(66vw, 290px); height: min(66vw, 290px); }
    .lu-brush { width: 65%; left: 27%; top: 17%; }
    .lu-title-window { width: min(90vw, 420px); margin-top: -1px; }
    .lu-tagline { width: 92vw; margin-top: 5px; font-size: 12px; }
    .lu-clouds { height: 78px; }
    .lu-cloud { transform: scale(0.72); transform-origin: bottom left; }
    .lu-cloud--2 { right: -18%; transform: scale(0.65); }
}

@media (max-width: 420px) {
    .lu-nav__link { padding: 8px 7px; font-size: 11px; }
    .lu-moon-area { width: min(69vw, 278px); height: min(69vw, 278px); }
    .lu-title-window { width: 92vw; }
}

@media (prefers-reduced-motion: reduce) {
    .lu-moon-float,
    .lu-cloud { animation: none !important; }
    .lu-nav__link { transition: none !important; }
}
