/* A floating 3D wordmark framed by exactly two moving orbital rings. */
.moaliverse-welcome {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 680px;
    min-height: 400px;
    padding: 65px 20px;
    text-align: center;
    isolation: isolate;
    perspective: 1000px;
}

/* Diffuse light leaves the homepage artwork visible behind the welcome. */
.moaliverse-welcome::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: radial-gradient(ellipse, #6356d634, #209bcb14 40%, transparent 70%);
    pointer-events: none;
}

/* Separate plane tilt from track rotation so highlights travel around ellipses. */
.welcome-orbit {
    --ring-color: 91, 219, 255;
    position: absolute;
    left: 4%;
    top: 50%;
    width: 92%;
    aspect-ratio: 1;
    margin-top: -46%;
    pointer-events: none;
    z-index: -1;
    transform-style: preserve-3d;
    transform: rotateZ(-19deg) rotateX(67deg);
}

/* The second orbital plane crosses the first at a different angle. */
.welcome-orbit-violet {
    --ring-color: 184, 126, 255;
    left: 8%;
    width: 84%;
    margin-top: -42%;
    transform: rotateZ(27deg) rotateX(62deg);
}

/* Uneven light and a bright moving bead make ring movement clearly visible. */
.welcome-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(var(--ring-color), .55);
    border-top-color: rgba(var(--ring-color), 1);
    border-bottom-color: rgba(var(--ring-color), .18);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(var(--ring-color), .55), inset 0 0 8px rgba(var(--ring-color), .28);
    animation: welcome-ring-turn 14s linear infinite;
}

.welcome-orbit-violet .welcome-ring {
    animation-duration: 21s;
    animation-direction: reverse;
}

/* The bead is decorative and never intercepts pointer or keyboard interaction. */
.welcome-orbit-star {
    position: absolute;
    top: -6px;
    left: calc(50% - 6px);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f4fcff;
    box-shadow: 0 0 10px #fff, 0 0 25px rgb(var(--ring-color)), 0 0 45px rgb(var(--ring-color));
}

/* Layered shadows form an extruded edge beneath a bright letter face. */
.moaliverse-welcome .welcome-title {
    position: relative;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -.025em;
    transform-style: preserve-3d;
    animation: welcome-word-float 6s ease-in-out infinite;
}

.moaliverse-welcome .welcome-title .welcome-intro {
    display: block;
    margin-bottom: 18px;
    color: #e7edff;
    font-size: clamp(22px, 3vw, 35px);
    font-weight: 600;
    letter-spacing: .12em;
    background: none;
    -webkit-text-fill-color: currentColor;
    text-shadow: 0 1px #8894bf, 0 2px #5c648d, 0 3px #3b446a, 0 8px 15px #0009, 0 0 20px #a6a9ff45;
}

.moaliverse-welcome .welcome-title .welcome-name {
    display: block;
    font-size: clamp(42px, 5.3vw, 84px);
    font-weight: 900;
    color: #cceaff;
    background: none;
    -webkit-text-fill-color: currentColor;
    text-shadow: 0 1px #aecae8, 0 2px #8babd8, 0 3px #7488ba, 0 4px #636caa, 0 5px #515691, 0 6px #434679, 0 7px #32375b, 0 12px 14px #070717, 0 0 25px #7ed5ff50, 0 0 55px #a979ff35;
}

/* A changing shadow reinforces the illusion that the heading floats. */
.welcome-light {
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 45px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(ellipse, #7ba7e52c, transparent 70%);
    filter: blur(6px);
    animation: welcome-shadow-breathe 6s ease-in-out infinite;
}

@keyframes welcome-ring-turn {
    to { transform: rotate(360deg); }
}

@keyframes welcome-word-float {
    0%, 100% { transform: translateY(8px) rotateX(5deg) rotateY(-5deg); }
    50% { transform: translateY(-12px) rotateX(-3deg) rotateY(5deg); }
}

@keyframes welcome-shadow-breathe {
    0%, 100% { opacity: .8; transform: scaleX(1); }
    50% { opacity: .4; transform: scaleX(.8); }
}

/* Keep both rings and the complete wordmark inside narrow layouts. */
@media (max-width: 760px) {
    .moaliverse-welcome { min-height: 300px; padding: 45px 8px; }
    .welcome-orbit { left: 2%; width: 96%; margin-top: -48%; }
    .welcome-orbit-violet { left: 6%; width: 88%; margin-top: -44%; }
    .welcome-light { bottom: 25px; }
}

/* Preserve the design without motion when the visitor requests less animation. */
@media (prefers-reduced-motion: reduce) {
    .welcome-ring, .moaliverse-welcome .welcome-title, .welcome-light { animation: none; }
}
/* Metallic face and a moving light reflection over the extruded wordmark. */
.moaliverse-welcome .welcome-title .welcome-name {
    position: relative;
    font-family: 'Trebuchet MS', 'Arial Black', sans-serif;
    font-weight: 900;
    letter-spacing: -.045em;
    color: #d4f4ff;
    background: linear-gradient(115deg, #c8adff 0%, #f5edff 19%, #8ecaff 34%, #ffffff 45%, #83ecff 53%, #bb99ff 70%, #eee3ff 85%, #c8adff 100%);
    background-size: 240% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Drop shadows follow the transparent letter face and form its 3D edges. */
    text-shadow: none;
    filter: drop-shadow(0 1px 0 #7b9dc9) drop-shadow(0 2px 0 #526baa) drop-shadow(0 3px 0 #383e72) drop-shadow(0 8px 5px #070a1b) drop-shadow(0 0 16px #80bfff70);
    animation: welcome-letter-shimmer 9s ease-in-out infinite;
}

/* Small spaced capitals contrast with the sculpted main name. */
.moaliverse-welcome .welcome-title .welcome-intro {
    font-size: clamp(15px, 2vw, 24px);
    text-transform: uppercase;
    letter-spacing: .3em;
    font-weight: 700;
    color: #d9dcff;
    margin-bottom: 22px;
    text-shadow: 0 1px #5e6592, 0 2px #303451, 0 0 14px #bb99ff77;
}

/* Move only the light reflection; the complete heading keeps its float motion. */
@keyframes welcome-letter-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .moaliverse-welcome .welcome-title .welcome-name { animation: none; }
}
/* Locally hosted UnifrakturMaguntia gives the welcome Old English letterforms. */
@font-face {
    font-family: 'Moaliverse Old English';
    src: url('../fonts/unifraktur-maguntia.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Old English lettering retains the dimensional shadows and cosmic finish. */
.moaliverse-welcome .welcome-title .welcome-name {
    font-family: 'Moaliverse Old English', 'Old English Text MT', serif;
    font-weight: 400;
    font-size: clamp(44px, 5.8vw, 88px);
    letter-spacing: 0;
    line-height: 1.45;
    padding: 0 .12em .15em;
    margin: -.08em -.12em 0;
    background-image: linear-gradient(110deg, #e4bdff, #fff0ff 25%, #b7a1ff 40%, #92efff 58%, #ffffff 75%, #dfb7ff);
    filter: drop-shadow(0 1px 0 #7885c6) drop-shadow(0 2px 0 #514179) drop-shadow(0 5px 4px #080a20) drop-shadow(0 0 13px #a58bff88);
}

/* The introduction uses the same soft curves rather than widely spaced capitals. */
.moaliverse-welcome .welcome-title .welcome-intro {
    font-family: 'Moaliverse Old English', 'Old English Text MT', serif;
    text-transform: none;
    font-size: clamp(24px, 3vw, 37px);
    font-weight: 400;
    letter-spacing: .015em;
    line-height: 1.5;
    margin-bottom: 4px;
    color: #f0ddff;
}
/* A long stepped extrusion gives the Old English letters a solid sculpted body. */
.moaliverse-welcome .welcome-title .welcome-name {
    background: none;
    -webkit-text-fill-color: #e0eaff;
    color: #e0eaff;
    -webkit-text-stroke: .45px #f5eeff;
    text-shadow:
        0 -1px 0 #ffffff,
        1px 1px 0 #b2b9ed,
        2px 2px 0 #929cd8,
        3px 3px 0 #7d87c9,
        4px 4px 0 #6c75ba,
        5px 5px 0 #6067ab,
        6px 6px 0 #555b9b,
        7px 7px 0 #4b508c,
        8px 8px 0 #42467d,
        9px 9px 0 #393d6e,
        10px 10px 0 #31345f,
        11px 11px 0 #292c51,
        12px 12px 0 #222543,
        14px 18px 8px #040716cc,
        20px 28px 25px #030512b3,
        0 0 28px #89baff45;
    filter: none;
    animation: none;
}

/* The smaller introduction gets a matching raised edge without heavy visual weight. */
.moaliverse-welcome .welcome-title .welcome-intro {
    text-shadow:
        0 -1px 0 #fff3ff,
        1px 1px 0 #a7a0d5,
        2px 2px 0 #8077b4,
        3px 3px 0 #635a96,
        4px 4px 0 #4b427a,
        5px 5px 0 #352f5a,
        8px 11px 7px #050717b3,
        0 0 18px #a68fff55;
}

/* A stronger perspective tilt exposes the layered edge while the heading floats. */
@keyframes welcome-word-float {
    0%, 100% { transform: translateY(8px) rotateX(10deg) rotateY(-8deg); }
    50% { transform: translateY(-12px) rotateX(3deg) rotateY(7deg); }
}

/* Keep the extra lettering depth proportionate on compact screens. */
@media (max-width: 600px) {
    .moaliverse-welcome .welcome-title .welcome-name {
        text-shadow: 0 -1px #fff, 1px 1px #a7b1e4, 2px 2px #808dc8, 3px 3px #6873ac, 4px 4px #505b90, 5px 5px #3b456f, 6px 6px #292f50, 10px 15px 12px #040716cc, 0 0 20px #89baff45;
    }
}
/* Layer colored light around the letters without replacing their extruded shadows. */
.moaliverse-welcome .welcome-title .welcome-name {
    filter: drop-shadow(0 0 5px #c9efffcc)
            drop-shadow(0 0 14px #71d8ff99)
            drop-shadow(0 0 30px #9966ff88);
}

/* Light the introduction in the same palette, with a softer halo. */
.moaliverse-welcome .welcome-title .welcome-intro {
    filter: drop-shadow(0 0 6px #ded0ffbb)
            drop-shadow(0 0 16px #ad83ff88);
}
