/* Galaxy Mode: a just-for-fun page. Space sky, growing planet, mini game. */

.galaxy-page {
    --gx-night: #060f16;
    --gx-deep: #0b1b25;
    --gx-ink: #1a2833;
    --gx-teal: #234857;
    --gx-sea: #7fd6e6;
    --gx-orange: #e89848;
    --gx-gold: #edc242;
    --gx-text: #c9d4db;
    --gx-muted: #8fa1ad;
    --gx-line: rgb(255 255 255 / 10%);
    --gx-glass: rgb(16 34 46 / 72%);
    background: var(--gx-night);
}

/* Shared header and footer, as on the other pages */

.galaxy-page .tm-header-mobile,
.galaxy-page .tm-header {
    position: relative;
    z-index: 20;
}

.galaxy-page .uk-navbar-container:not(.uk-navbar-transparent) {
    background: var(--gx-ink);
}

.galaxy-page .uk-navbar-nav > li > a,
.galaxy-page .uk-navbar-toggle {
    color: white;
}

.galaxy-page .uk-navbar-nav > li > a:hover,
.galaxy-page .uk-navbar-toggle:hover {
    color: var(--gx-orange);
}

.galaxy-page .uk-navbar-toggle-icon {
    color: var(--gx-orange);
}

.galaxy-page .uk-navbar-item.widget {
    padding-left: 12px;
    padding-right: 12px;
}

.galaxy-page .auth-btn {
    display: inline-flex;
    min-width: 90px;
    justify-content: center;
    padding: 7px 16px;
    color: white;
    border: 2px solid white;
    border-radius: 9px;
    text-decoration: none;
}

.galaxy-page .auth-btn:hover {
    color: var(--gx-gold);
    border-color: var(--gx-gold);
}

.galaxy-footer .galaxy-footer-brand { text-align: center; }
.galaxy-footer-brand img { width: 200px; height: auto; }
.galaxy-footer-brand h2 { margin-top: 14px; }
.galaxy-footer > .uk-container > .uk-grid h2 { font-size: 19px; }
.galaxy-footer > .uk-container > .uk-grid a { color: white; text-decoration: none; }
.galaxy-footer > .uk-container > .uk-grid a.uk-icon-button { color: #000; }
.galaxy-footer > .uk-container > .uk-grid a:hover { color: var(--gx-gold); }

/* Page and sky */

.gx-main {
    position: relative;
    isolation: isolate;
    clip-path: inset(0);
    color: var(--gx-text);
    font-family: Lato, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

.gx-main h1,
.gx-main h2,
.gx-main h3 {
    margin: 0;
    color: white;
    font-family: Fredoka, Lato, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
}

.gx-main p {
    margin: 0;
}

.gx-sky {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 70% at 0% 30%, rgb(47 127 143 / 34%), transparent 70%),
        radial-gradient(ellipse 50% 60% at 100% 75%, rgb(232 152 72 / 16%), transparent 70%),
        radial-gradient(ellipse 80% 60% at 50% 0%, rgb(35 72 87 / 40%), transparent 70%),
        var(--gx-night);
    pointer-events: none;
}

.gx-sky canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gx-swirl {
    position: absolute;
    inset: -20%;
    width: 140%;
    height: 140%;
    animation: gx-swirl 120s linear infinite;
}

.gx-swirl ellipse {
    fill: none;
    stroke-linecap: round;
}

@keyframes gx-swirl {
    to { transform: rotate(360deg); }
}

.gx-container {
    position: relative;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.gx-section {
    position: relative;
    padding: 110px 0;
}

.gx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px !important;
    color: var(--gx-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gx-pulse {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gx-orange);
}

.gx-pulse::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 2px solid var(--gx-orange);
    border-radius: 50%;
    animation: gx-ping 1.8s ease-out infinite;
}

@keyframes gx-ping {
    from { transform: scale(0.6); opacity: 1; }
    to { transform: scale(2); opacity: 0; }
}

.gx-heading {
    max-width: 720px;
    margin: 0 auto 52px;
    text-align: center;
}

.gx-heading h2 {
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.05;
}

.gx-heading > p:last-child {
    margin-top: 16px;
    color: var(--gx-muted);
    font-size: 19px;
}

.gx-glow-text {
    padding: 0 0.04em 0.14em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background: linear-gradient(100deg, var(--gx-orange), var(--gx-gold) 35%, #fff4d1 50%, var(--gx-sea) 65%, var(--gx-orange));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gx-shimmer 7s linear infinite;
}

@keyframes gx-shimmer {
    from { background-position: 0% 0; }
    to { background-position: 300% 0; }
}

.gx-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--gx-orange), var(--gx-gold));
    color: var(--gx-ink) !important;
    font: inherit;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 0 0 0 rgb(237 194 66 / 50%), 0 10px 34px rgb(232 152 72 / 40%);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gx-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 0 6px rgb(237 194 66 / 18%), 0 14px 40px rgb(232 152 72 / 55%);
}

.gx-btn-ghost {
    background: rgb(255 255 255 / 6%);
    border: 1.5px solid rgb(255 255 255 / 35%);
    color: white !important;
    box-shadow: none;
}

.gx-btn-ghost:hover {
    border-color: var(--gx-gold);
    box-shadow: none;
}

.gx-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Hero */

.gx-hero {
    position: relative;
    padding: 124px 0 110px;
}

.gx-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 40px;
}

.gx-hero h1 {
    font-size: clamp(48px, 6.6vw, 92px);
    line-height: 1.02;
}

.gx-hero h1 span {
    display: block;
    margin-bottom: -0.14em;
}

.gx-lede {
    max-width: 540px;
    margin-top: 26px !important;
    font-size: 19px;
    line-height: 1.65;
}

.gx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.gx-hint {
    margin-top: 22px !important;
    color: var(--gx-muted);
    font-size: 14px;
}

.gx-hero-planet {
    position: relative;
    justify-self: center;
    width: min(520px, 100%);
    aspect-ratio: 1;
    animation: gx-bob 8s ease-in-out infinite;
}

.gx-hero-planet button {
    position: absolute;
    inset: 12%;
    z-index: 3;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.gx-hero-planet button:focus-visible {
    outline: 3px solid var(--gx-gold);
    outline-offset: 6px;
}

@keyframes gx-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(1.5deg); }
}

.gx-chip {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--gx-line);
    border-radius: 14px;
    background: var(--gx-glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgb(0 0 0 / 35%);
    animation: gx-float 7s ease-in-out infinite;
}

.gx-chip i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gx-gold);
    box-shadow: 0 0 10px var(--gx-gold);
}

.gx-chip-1 { top: 8%; left: 0; }
.gx-chip-2 { top: 22%; right: -2%; animation-delay: -2.5s; }
.gx-chip-3 { bottom: 12%; left: 4%; animation-delay: -5s; }

@keyframes gx-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* The planet */

.gx-planet-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.gx-l {
    opacity: 0;
    transition: opacity 0.9s ease;
}

.gx-l.is-on {
    opacity: 1;
}

.gx-hero-planet .gx-l {
    opacity: 1;
    transition: none;
}

.gx-spin {
    animation: gx-spin 26s linear infinite;
}

.gx-spin-fast {
    animation-duration: 16s;
}

@keyframes gx-spin {
    from { transform: translateX(0); }
    to { transform: translateX(-360px); }
}

.gx-orbit,
.gx-orbit-2,
.gx-sat {
    transform-box: view-box;
    transform-origin: 200px 200px;
    animation: gx-orbit 16s linear infinite;
}

.gx-orbit-2 {
    animation-duration: 24s;
    animation-direction: reverse;
}

.gx-sat {
    animation-duration: 7s;
}

@keyframes gx-orbit {
    to { transform: rotate(360deg); }
}

.gx-twinkle {
    transform-box: fill-box;
    transform-origin: center;
    animation: gx-twinkle 2.4s ease-in-out infinite;
}

@keyframes gx-twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.6); }
}

.gx-aurora {
    animation: gx-aurora 5s ease-in-out infinite;
}

@keyframes gx-aurora {
    0%, 100% { transform: translateX(-10px); opacity: 0.7; }
    50% { transform: translateX(10px); opacity: 1; }
}

.gx-city {
    animation: gx-twinkle 3s ease-in-out infinite;
}

.gx-pop {
    animation: gx-pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes gx-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Planet builder */

.gx-builder-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
}

.gx-panel {
    position: relative;
    padding: 28px;
    border: 1px solid var(--gx-line);
    border-radius: 24px;
    background: var(--gx-glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 70px rgb(0 0 0 / 35%);
}

.gx-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gx-stage-planet {
    position: relative;
    width: min(400px, 100%);
    aspect-ratio: 1;
}

.gx-level-title {
    margin-top: 10px !important;
    color: white;
    font-family: Fredoka, Lato, Arial, sans-serif;
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
}

.gx-level-desc {
    min-height: 1.6em;
    margin-top: 6px !important;
    color: var(--gx-text);
}

.gx-stage-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.gx-small-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 999px;
    background: transparent;
    color: white;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.gx-small-btn:hover:not(:disabled) {
    border-color: var(--gx-gold);
    background: rgb(237 194 66 / 8%);
}

.gx-small-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.gx-small-btn.gx-grow {
    border: 0;
    background: linear-gradient(120deg, var(--gx-orange), var(--gx-gold));
    color: var(--gx-ink);
}

.gx-list-head h3 {
    font-size: 22px;
}

.gx-list-head p {
    margin-top: 6px !important;
    color: var(--gx-muted);
    font-size: 15px;
}

.gx-progress {
    margin: 18px 0 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgb(255 255 255 / 5%);
}

.gx-progress strong {
    color: white;
    font-size: 15px;
}

.gx-bar {
    height: 8px;
    margin: 10px 0 6px;
    border-radius: 999px;
    background: rgb(255 255 255 / 10%);
    overflow: hidden;
}

.gx-bar span {
    display: block;
    height: 100%;
    width: 12.5%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gx-gold), var(--gx-orange));
    box-shadow: 0 0 12px var(--gx-gold);
    transition: width 0.7s cubic-bezier(0.3, 1.2, 0.5, 1);
}

.gx-progress small {
    color: var(--gx-muted);
    font-size: 13px;
}

.gx-levels {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gx-level {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--gx-muted);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gx-level:hover {
    background: rgb(255 255 255 / 5%);
}

.gx-level.is-current {
    border-color: rgb(237 194 66 / 55%);
    background: rgb(237 194 66 / 8%);
}

.gx-level-num {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 50%;
    color: var(--gx-muted);
    font-size: 13px;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.gx-level.is-done .gx-level-num {
    border-color: transparent;
    background: var(--gx-gold);
    color: var(--gx-ink);
}

.gx-level strong {
    display: block;
    color: white;
    font-size: 14px;
}

.gx-level small {
    display: block;
    font-size: 13px;
    line-height: 1.4;
}

/* Bursts */

.gx-burst {
    position: absolute;
    z-index: 30;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    animation: gx-burst 0.9s ease-out forwards;
}

@keyframes gx-burst {
    from { transform: translate(0, 0) scale(1); opacity: 1; }
    to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; }
}

.gx-toast {
    position: fixed;
    left: 50%;
    top: 22%;
    z-index: 60;
    padding: 16px 26px;
    border: 1px solid rgb(237 194 66 / 50%);
    border-radius: 18px;
    background: rgb(11 27 37 / 92%);
    color: white;
    font-family: Fredoka, Lato, Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 0 60px rgb(237 194 66 / 35%);
    transform: translate(-50%, -20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gx-toast.is-shown {
    opacity: 1;
    transform: translate(-50%, 0);
}

.gx-toast small {
    display: block;
    color: var(--gx-muted);
    font-family: Lato, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
}

/* Mini game */

.gx-game {
    position: relative;
    overflow: hidden;
    height: 380px;
    padding: 0;
}

.gx-game-hud {
    position: absolute;
    top: 18px;
    left: 22px;
    right: 22px;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    color: white;
    font-family: Fredoka, Lato, Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    pointer-events: none;
}

.gx-game-hud span:last-child {
    color: var(--gx-muted);
    font-size: 16px;
}

.gx-game-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    background: radial-gradient(ellipse at center, rgb(11 27 37 / 70%), rgb(6 15 22 / 85%));
    text-align: center;
}

.gx-game-overlay[hidden] {
    display: none;
}

.gx-game-overlay p {
    max-width: 440px;
    color: white;
    font-family: Fredoka, Lato, Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.gx-star-btn {
    position: absolute;
    left: -70px;
    z-index: 4;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    animation: gx-streak var(--t, 4.5s) linear forwards;
}

.gx-star-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 50%;
    width: 120px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, rgb(237 194 66 / 70%));
    transform: translateY(-50%);
}

.gx-star-btn svg {
    position: relative;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px var(--gx-gold));
    animation: gx-spin-star 2s linear infinite;
}

@keyframes gx-spin-star {
    to { transform: rotate(360deg); }
}

@keyframes gx-streak {
    from { left: -70px; transform: translateY(0); }
    50% { transform: translateY(var(--arc, -30px)); }
    to { left: calc(100% + 70px); transform: translateY(0); }
}

/* Business / Galaxy switch */

.gx-modes-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
}

.gx-modes h2 {
    font-size: clamp(36px, 4.6vw, 58px);
    line-height: 1.02;
}

.gx-modes-copy > p {
    margin-top: 18px !important;
    color: var(--gx-text);
    font-size: 18px;
}

.gx-switch {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    padding: 0;
    border: 0;
    background: none;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.gx-switch-track {
    position: relative;
    width: 66px;
    height: 36px;
    border-radius: 999px;
    background: #d6dce0;
    transition: background-color 0.3s ease;
}

.gx-switch-track::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 6px rgb(0 0 0 / 30%);
    transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.gx-switch[aria-checked="true"] .gx-switch-track {
    background: linear-gradient(120deg, var(--gx-orange), var(--gx-gold));
}

.gx-switch[aria-checked="true"] .gx-switch-track::after {
    transform: translateX(30px);
}

.gx-switch-label span {
    color: var(--gx-muted);
    font-weight: 400;
}

.gx-dash {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-radius: 24px;
    background: #f6f7f8;
    color: var(--gx-ink);
    box-shadow: 0 34px 80px rgb(0 0 0 / 45%);
    transition: background-color 0.6s ease, color 0.6s ease;
}

.gx-dash-stars {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, white, transparent),
        radial-gradient(1px 1px at 70% 20%, white, transparent),
        radial-gradient(1.5px 1.5px at 85% 70%, var(--gx-gold), transparent),
        radial-gradient(1px 1px at 40% 80%, white, transparent),
        radial-gradient(2px 2px at 55% 45%, var(--gx-gold), transparent),
        radial-gradient(1px 1px at 10% 65%, white, transparent),
        radial-gradient(1.5px 1.5px at 92% 35%, white, transparent);
    transition: opacity 0.6s ease;
    animation: gx-drift-bg 30s linear infinite;
}

@keyframes gx-drift-bg {
    to { background-position: 200px 120px; }
}

.gx-dash-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.gx-dash-hello {
    font-family: Fredoka, Lato, Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.gx-dash-badge {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: #e3e7ea;
    transition: background-color 0.6s ease, box-shadow 0.6s ease;
}

.gx-dash-badge svg {
    width: 34px;
    height: 34px;
}

.gx-dash-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.gx-dash-stat {
    padding: 14px;
    border: 1px solid #e3e7ea;
    border-radius: 14px;
    background: white;
    transition: background-color 0.6s ease, border-color 0.6s ease;
}

.gx-dash-stat strong {
    display: block;
    font-family: Fredoka, Lato, Arial, sans-serif;
    font-size: 26px;
    line-height: 1.1;
}

.gx-dash-stat span {
    color: #607387;
    font-size: 12px;
}

.gx-dash-bars {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #e3e7ea;
    border-radius: 14px;
    background: white;
    transition: background-color 0.6s ease, border-color 0.6s ease;
}

.gx-dash-bars span {
    flex: 1;
    border-radius: 5px 5px 0 0;
    background: var(--gx-teal);
    transition: background 0.6s ease, box-shadow 0.6s ease;
}

.gx-dash-bars span:nth-child(1) { height: 35%; }
.gx-dash-bars span:nth-child(2) { height: 55%; }
.gx-dash-bars span:nth-child(3) { height: 42%; }
.gx-dash-bars span:nth-child(4) { height: 70%; }
.gx-dash-bars span:nth-child(5) { height: 60%; }
.gx-dash-bars span:nth-child(6) { height: 90%; }

.gx-dash.is-galaxy {
    background: #0d2230;
    color: white;
}

.gx-dash.is-galaxy .gx-dash-stars { opacity: 1; }
.gx-dash.is-galaxy .gx-dash-badge { background: rgb(237 194 66 / 15%); box-shadow: 0 0 24px rgb(237 194 66 / 40%); }
.gx-dash.is-galaxy .gx-dash-stat,
.gx-dash.is-galaxy .gx-dash-bars { background: rgb(255 255 255 / 5%); border-color: rgb(255 255 255 / 12%); }
.gx-dash.is-galaxy .gx-dash-stat span { color: var(--gx-muted); }
.gx-dash.is-galaxy .gx-dash-bars span { background: linear-gradient(180deg, var(--gx-gold), var(--gx-orange)); box-shadow: 0 0 14px rgb(237 194 66 / 45%); }

/* Final call to action */

.gx-final-card {
    position: relative;
    overflow: hidden;
    padding: 80px 48px;
    border: 1px solid rgb(237 194 66 / 25%);
    border-radius: 32px;
    background: radial-gradient(ellipse at 50% 120%, rgb(232 152 72 / 28%), transparent 60%), var(--gx-glass);
    text-align: center;
    box-shadow: 0 0 80px rgb(237 194 66 / 12%);
}

.gx-final-card h2 {
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.05;
}

.gx-final-card p {
    max-width: 560px;
    margin: 16px auto 0 !important;
    font-size: 19px;
}

.gx-final-card .gx-actions {
    justify-content: center;
}

.gx-final-dot {
    position: absolute;
    border-radius: 50%;
    animation: gx-float 8s ease-in-out infinite;
}

.gx-final-dot-1 { top: 30px; left: 8%; width: 46px; height: 46px; background: var(--gx-gold); box-shadow: 0 0 30px var(--gx-gold); }
.gx-final-dot-2 { top: 64px; left: calc(8% + 34px); width: 28px; height: 28px; background: var(--gx-orange); animation-delay: -3s; }
.gx-final-dot-3 { bottom: 40px; right: 9%; width: 60px; height: 60px; background: var(--gx-orange); opacity: 0.85; animation-delay: -5s; }

/* Pause button, like the platform's */

.gx-pause {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 999px;
    background: rgb(11 27 37 / 85%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: white;
    font: 700 13px Lato, Arial, sans-serif;
    cursor: pointer;
}

.gx-pause:hover {
    border-color: var(--gx-gold);
}

.gx-paused *,
.gx-paused *::before,
.gx-paused *::after {
    animation-play-state: paused !important;
}

/* Warp: the page shakes a touch while the stars streak */

.gx-warping .gx-hero-grid {
    animation: gx-shake 0.12s linear 12;
}

@keyframes gx-shake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(1px, -1px); }
    75% { transform: translate(-1px, 1px); }
}

/* Responsive */

@media (max-width: 960px) {
    .gx-hero-grid,
    .gx-builder-grid,
    .gx-modes-grid {
        grid-template-columns: 1fr;
    }

    .gx-hero {
        min-height: 0;
    }

    .gx-hero-planet {
        width: min(440px, 100%);
    }
}

@media (max-width: 640px) {
    .gx-section {
        padding: 76px 0;
    }

    .gx-panel {
        padding: 20px;
    }

    .gx-chip-2 {
        right: 0;
    }

    .gx-game {
        height: 340px;
    }

    .gx-dash-stats {
        gap: 6px;
    }

    .gx-dash-stat {
        padding: 10px;
    }

    .gx-dash-stat strong {
        font-size: 20px;
    }

    .gx-final-card {
        padding: 56px 22px;
    }

    .gx-pause {
        right: 12px;
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gx-main *,
    .gx-main *::before,
    .gx-main *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .gx-star-btn {
        animation-duration: 9s !important;
    }
}

/* Random visitors drifting through */

.gx-visitor {
    position: fixed;
    left: 0;
    z-index: 40;
    width: 120px;
    height: 120px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    filter: drop-shadow(0 10px 18px rgb(0 0 0 / 45%));
}

.gx-visitor svg {
    display: block;
    width: 100%;
    height: 100%;
}

.gx-visitor:focus-visible {
    outline: 3px solid var(--gx-gold);
    outline-offset: 4px;
    border-radius: 50%;
}

.gx-visitor .gx-wave {
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: gx-wave 0.6s ease-in-out infinite alternate;
}

@keyframes gx-wave {
    from { transform: rotate(-25deg); }
    to { transform: rotate(25deg); }
}

.gx-visitor .gx-blink {
    animation: gx-blink-light 0.8s steps(2) infinite;
}

.gx-visitor .gx-blink:nth-of-type(2) { animation-delay: 0.27s; }
.gx-visitor .gx-blink:nth-of-type(3) { animation-delay: 0.54s; }

@keyframes gx-blink-light {
    50% { opacity: 0.25; }
}

.gx-visitor .gx-steam {
    animation: gx-steam 2s ease-in-out infinite;
}

@keyframes gx-steam {
    0% { transform: translateY(4px); opacity: 0; }
    40% { opacity: 0.8; }
    100% { transform: translateY(-10px); opacity: 0; }
}

@media (max-width: 640px) {
    .gx-visitor {
        width: 84px;
        height: 84px;
    }
}

/* Meteor that races by after a supernova */

.gx-meteor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 55;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    background: radial-gradient(circle, #fffbe8 0%, #ffe08a 30%, #e89848 60%, rgb(232 152 72 / 0%) 72%);
    box-shadow: 0 0 30px 10px rgb(237 194 66 / 70%), 0 0 70px 20px rgb(232 152 72 / 40%);
    pointer-events: none;
}

.gx-meteor-tail {
    position: absolute;
    top: 50%;
    right: 50%;
    width: 260px;
    height: 14px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgb(232 152 72 / 0%), rgb(237 194 66 / 55%) 60%, rgb(255 248 220 / 95%));
    filter: blur(2px);
    transform-origin: right center;
    transform: translateY(-50%) rotate(var(--ang, 0deg));
}

.gx-debris {
    position: fixed;
    z-index: 54;
    border-radius: 2px;
    pointer-events: none;
    animation: gx-debris var(--life, 1s) ease-out forwards;
}

@keyframes gx-debris {
    from { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}
