/* Galaxy Meta Eggs — shared universe (all public pages) */

:root {
    --gx-void: #04060f;
    --gx-navy: #0a1028;
    --gx-ink: #eef4ff;
    --gx-mute: #b7c4e6;
    --gx-gold: #f6c85a;
    --gx-gold-2: #ffe9a8;
    --gx-cyan: #5ce8ff;
    --gx-violet: #8b6bff;
    --gx-pink: #ff6ad5;
    --gx-glass: rgba(12, 18, 48, 0.62);
    --gx-line: rgba(255, 255, 255, 0.16);
    --gx-shadow: 0 24px 60px rgba(2, 4, 18, 0.45);
    --gx-font: 'Outfit', system-ui, sans-serif;
    --gx-display: 'Cinzel', Georgia, serif;
}

html, body {
    margin: 0;
}

body.gx-public {
    min-height: 100dvh;
    color: var(--gx-ink);
    background: var(--gx-void);
    font-family: var(--gx-font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.gx-public .page-bg,
body.gx-public .navbar,
body.gx-public .site-footer,
body.gx-public .ir-foot {
    display: none !important;
}

.gx-sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 12% -10%, rgba(91, 70, 255, 0.42), transparent 58%),
        radial-gradient(720px 460px at 108% 8%, rgba(92, 232, 255, 0.22), transparent 52%),
        radial-gradient(640px 480px at 50% 118%, rgba(246, 200, 90, 0.16), transparent 55%),
        linear-gradient(180deg, #10183a 0%, #070b1c 42%, #12082a 100%);
}

.gx-sky::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 8% 18%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 22% 72%, #ffe9a8, transparent),
        radial-gradient(1px 1px at 36% 28%, #fff, transparent),
        radial-gradient(1.6px 1.6px at 48% 12%, #5ce8ff, transparent),
        radial-gradient(1px 1px at 62% 64%, #fff, transparent),
        radial-gradient(1.4px 1.4px at 74% 22%, #ff6ad5, transparent),
        radial-gradient(1px 1px at 86% 48%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 92% 82%, #ffe9a8, transparent),
        radial-gradient(1px 1px at 14% 90%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 58% 88%, #8b6bff, transparent);
    animation: gxTwinkle 6s ease-in-out infinite;
}

.gx-sky::after {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.06), transparent 22%),
        radial-gradient(circle at 70% 60%, rgba(139, 107, 255, 0.12), transparent 26%);
    animation: gxDrift 22s ease-in-out infinite;
}

.gx-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    animation: gxFloat 12s ease-in-out infinite;
}

.gx-orb.a {
    width: min(260px, 72vw);
    height: min(260px, 72vw);
    top: 6%;
    left: -90px;
    background: radial-gradient(circle, rgba(246, 200, 90, 0.5), transparent 70%);
}

.gx-orb.b {
    width: min(280px, 76vw);
    height: min(280px, 76vw);
    right: -110px;
    top: 38%;
    background: radial-gradient(circle, rgba(92, 232, 255, 0.32), transparent 70%);
    animation-delay: -4s;
}

.gx-orb.c {
    width: min(180px, 50vw);
    height: min(180px, 50vw);
    left: 38%;
    bottom: 2%;
    background: radial-gradient(circle, rgba(255, 106, 213, 0.22), transparent 70%);
    animation-delay: -7s;
}

.gx-spark {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffe9a8;
    box-shadow: 0 0 14px #f6c85a;
    animation: gxRise 10s linear infinite;
}

.gx-spark.s1 { left: 12%; }
.gx-spark.s2 { left: 32%; animation-duration: 12s; animation-delay: -2s; }
.gx-spark.s3 { left: 54%; animation-duration: 8s; animation-delay: -5s; }
.gx-spark.s4 { left: 73%; animation-duration: 11s; animation-delay: -1s; }
.gx-spark.s5 { left: 90%; animation-duration: 9s; animation-delay: -3s; }

/* Navbar — floating moons, no bar background */
.gx-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    padding:
        max(10px, env(safe-area-inset-top, 0px))
        max(12px, env(safe-area-inset-right, 0px))
        6px
        max(12px, env(safe-area-inset-left, 0px));
    background: transparent;
}

.gx-nav-shell {
    position: relative;
    width: min(1100px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.gx-nav-shell::after {
    content: '';
    position: absolute;
    left: 72px;
    right: 12px;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, rgba(246, 200, 90, 0.55), transparent 42%, transparent 58%, rgba(92, 232, 255, 0.45));
    pointer-events: none;
    z-index: 0;
}

.gx-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
    text-decoration: none;
    color: inherit;
}

.gx-crest {
    position: relative;
    width: 58px;
    height: 66px;
    flex: 0 0 auto;
}

.gx-crest img {
    position: relative;
    z-index: 1;
    width: 50px;
    height: 58px !important;
    object-fit: cover;
    object-position: 50% 40%;
    border-radius: 50% 50% 48% 48% / 38% 38% 62% 62%;
    box-shadow: 0 0 0 2px rgba(246, 200, 90, 0.85), 0 0 24px rgba(92, 232, 255, 0.4);
}

.gx-crest-spin {
    position: absolute;
    inset: -6px -3px;
    border-radius: 50% 50% 48% 48% / 38% 38% 62% 62%;
    border: 1px dashed rgba(92, 232, 255, 0.75);
    animation: gxOrbit 10s linear infinite;
}

.gx-crest-spin::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 46%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f6c85a;
    box-shadow: 0 0 10px #f6c85a;
}

.gx-brand-copy {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
}

.gx-brand-copy strong {
    font-family: var(--gx-display);
    font-size: clamp(0.78rem, 2.8vw, 1.05rem);
    letter-spacing: 0.03em;
    white-space: normal;
    overflow: visible;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.gx-brand-copy small {
    color: var(--gx-gold-2);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gx-nav-links {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.gx-nav-links a {
    position: relative;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.16), rgba(8, 12, 40, 0.15) 58%, transparent 72%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 16px rgba(92, 232, 255, 0.18);
}

.gx-nav-links a::before {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px dashed rgba(246, 200, 90, 0.35);
    animation: gxOrbit 16s linear infinite;
}

.gx-nav-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(92, 232, 255, 0.55), 0 0 22px rgba(92, 232, 255, 0.35);
}

.gx-nav-links a.is-on {
    box-shadow: 0 0 0 2px rgba(92, 232, 255, 0.7), 0 0 22px rgba(92, 232, 255, 0.4);
}

.gx-nav-links a.is-gold {
    color: #1a1408;
    background: radial-gradient(circle at 32% 28%, #fff8d8, #f6c85a 46%, #b07a1e);
    box-shadow: 0 0 0 1px rgba(255, 233, 168, 0.8), 0 0 20px rgba(246, 200, 90, 0.45);
}

.gx-nav-links a.is-gold::before {
    border-color: rgba(255, 233, 168, 0.7);
}

.gx-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 168px;
    padding: 16px 20px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    border: 0;
    animation: none;
}

.gx-btn span {
    font-weight: 800;
    font-size: 1.2rem;
}

.gx-go-ico {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    padding: 4px;
    border-radius: 50%;
    transition: transform 0.18s ease;
}

.gx-btn:hover .gx-go-ico {
    transform: translateX(4px);
}

.gx-btn.is-gold {
    color: #1a1408;
    background: #f3c14a;
    box-shadow: 0 10px 24px rgba(201, 148, 32, 0.35);
}

.gx-btn.is-gold .gx-go-ico {
    background: #1a1408;
    color: #f3c14a;
}

.gx-btn.is-ice {
    color: #fff;
    background: #2f6dff;
    box-shadow: 0 10px 24px rgba(47, 109, 255, 0.35);
}

.gx-btn.is-ice .gx-go-ico {
    background: #fff;
    color: #2f6dff;
}

.gx-foot {
    position: relative;
    z-index: 1;
    width: min(720px, calc(100% - 24px));
    margin: 18px auto 0;
    padding: 8px 8px 22px;
    text-align: center;
    color: var(--gx-mute);
    font-size: 0.78rem;
}

@keyframes gxTwinkle {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes gxDrift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-3%, 2%, 0); }
}

@keyframes gxFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(12px, -16px, 0) scale(1.05); }
}

@keyframes gxRise {
    0% { transform: translateY(110vh); opacity: 0; }
    12% { opacity: 1; }
    100% { transform: translateY(-12vh); opacity: 0; }
}

@keyframes gxShine {
    0%, 55% { transform: translateX(-120%); }
    80%, 100% { transform: translateX(120%); }
}

@keyframes gxOrbit {
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .gx-nav-shell::after { display: none; }
    .gx-nav-links { gap: 6px; }
    .gx-nav-links a:not(.gx-nav-cta) { width: 44px; height: 44px; font-size: 0.52rem; }
}
