@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --umx-pattern-size: 540px;
    --umx-bg: linear-gradient(140deg, rgba(4, 25, 53, 0.82) 0%, rgba(9, 50, 97, 0.74) 55%, rgba(20, 93, 165, 0.66) 100%);
    --umx-surface: linear-gradient(150deg, rgba(6, 31, 65, 0.76), rgba(13, 65, 121, 0.68));
    --umx-surface-strong: linear-gradient(150deg, rgba(8, 36, 74, 0.9), rgba(12, 76, 139, 0.86));
    --umx-border: rgba(136, 211, 255, 0.34);
    --umx-text: #ecf7ff;
    --umx-muted: rgba(203, 232, 253, 0.82);
    --umx-highlight: #4dc5ff;
    --umx-highlight-soft: rgba(77, 197, 255, 0.28);
    --umx-shadow: 0 20px 45px rgba(2, 12, 33, 0);
    --umx-radius: 20px;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    color: var(--umx-text);
    background-image: url('./resources/images/itchio/BackgroundFlatItchio2025%20End.png'), var(--umx-bg);
    background-size: var(--umx-pattern-size) auto, cover;
    background-repeat: repeat, no-repeat;
    background-position: top left, center center;
    background-attachment: fixed, fixed;
    overflow-x: hidden;
}

body {
    line-height: 1.55;
}

img {
    max-width: 100%;
}

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

.umx-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(1rem, 2.5vw, 2rem);
}

.umx-shell {
    background: var(--umx-surface);
    border: 1px solid var(--umx-border);
    border-radius: var(--umx-radius);
    backdrop-filter: blur(10px);
    box-shadow: var(--umx-shadow);
}

.umx-hero {
    padding: clamp(1.2rem, 2.5vw, 2.2rem);
}

.umx-title {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
}

.umx-subtitle {
    margin-top: 0.55rem;
    color: var(--umx-muted);
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
}

.umx-logo {
    width: clamp(150px, 23vw, 240px);
    height: auto;
    display: block;
    filter: drop-shadow(0 14px 24px rgba(33, 151, 220, 0.4));
}

.umx-inline-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.umx-divider {
    height: 1px;
    border: 0;
    margin: 1rem 0;
    background: linear-gradient(90deg, rgba(147, 217, 255, 0), rgba(147, 217, 255, 0.58), rgba(147, 217, 255, 0));
}

.umx-grid {
    display: grid;
    gap: 1rem;
}

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

.umx-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.umx-card {
    background: var(--umx-surface);
    border: 1px solid var(--umx-border);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(2, 13, 35, 0.32);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.umx-card:hover {
    transform: translateY(-3px);
    border-color: rgba(174, 231, 255, 0.72);
    box-shadow: 0 18px 32px rgba(3, 17, 43, 0.45);
}

.umx-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.umx-card-text {
    margin: 0.5rem 0 0;
    color: var(--umx-muted);
    font-size: 0.95rem;
}

.umx-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(146, 220, 255, 0.42);
    background: rgba(15, 94, 161, 0.42);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

.umx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(120deg, #24a1f4, #1ec8cf);
    color: #ffffff;
    padding: 0.64rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(200, 238, 255, 0.35);
    box-shadow: 0 10px 22px rgba(21, 125, 195, 0.36);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.umx-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(24, 155, 206, 0.48);
    filter: brightness(1.05);
}

.umx-btn.secondary {
    background: linear-gradient(140deg, rgba(20, 104, 178, 0.7), rgba(14, 70, 129, 0.74));
}

.umx-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: var(--umx-surface-strong);
    border: 1px solid var(--umx-border);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(2, 11, 30, 0.4);
    position: sticky;
    top: 0.4rem;
    z-index: 30;
}

.umx-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.umx-nav-brand-title {
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.1;
}

.umx-nav-brand-sub {
    display: block;
    font-size: 0.38rem;
    letter-spacing: 0.04em;
    opacity: 0.76;
    text-transform: uppercase;
}

.umx-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.umx-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 10px;
    padding: 0.48rem 0.7rem;
    font-size: 0.85rem;
    color: rgba(235, 247, 255, 0.92);
    transition: background 0.22s ease, transform 0.22s ease;
}

.umx-nav-link:hover,
.umx-nav-link.active {
    background: var(--umx-highlight-soft);
    color: #fff;
    transform: translateY(-1px);
}

.umx-status-list {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.umx-status-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    padding: 0.32rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(149, 221, 255, 0.28);
    background: rgba(11, 73, 126, 0.42);
    white-space: nowrap;
    flex: 0 0 auto;
}

.umx-status-item.is-hidden {
    display: none;
}

.umx-inline-spinner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(159, 226, 255, 0.35);
    border-top-color: #6fdcff;
    animation: umxStatusSpin 0.85s linear infinite;
}

.status-dot {
    --dot-color: #ff9d57;
    --dot-glow: rgba(255, 157, 87, 0.55);
    width: 9px;
    height: 9px;
    min-width: 9px;
    min-height: 9px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--dot-color);
    box-shadow: 0 0 0 0 var(--dot-glow);
    animation: pulseDot 1.8s infinite;
    position: relative;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
    font-size: 9px;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif;
}

.status-dot.ok {
    --dot-color: #5deb97;
    --dot-glow: rgba(93, 235, 151, 0.55);
}

.status-dot.down {
    --dot-color: #ff7d7d;
    --dot-glow: rgba(255, 125, 125, 0.55);
}

.status-dot.warn {
    --dot-color: #ffd36d;
    --dot-glow: rgba(255, 211, 109, 0.56);
}

.status-dot.checking {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    aspect-ratio: 1 / 1;
    border: 2px solid rgba(158, 226, 255, 0.35);
    border-top-color: #6fddff;
    background: transparent;
    box-shadow: none;
    animation: umxStatusSpin 0.85s linear infinite;
}

.status-dot[data-updated-label]::after {
    content: attr(data-updated-label);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    background: rgba(7, 29, 53, 0.96);
    color: #e7f6ff;
    border: 1px solid rgba(139, 215, 255, 0.48);
    border-radius: 8px;
    padding: 0.28rem 0.46rem;
    font-size: 0.68rem;
    line-height: 1.2;
    box-shadow: 0 10px 18px rgba(2, 11, 29, 0.44);
    z-index: 60;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.status-dot[data-updated-label]::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    pointer-events: none;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(7, 29, 53, 0.96);
    z-index: 60;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.status-dot[data-updated-label]:hover::after,
.status-dot[data-updated-label]:focus-visible::after,
.status-dot[data-updated-label]:hover::before,
.status-dot[data-updated-label]:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 var(--dot-glow);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes umxStatusSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.section-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 2.8vw, 1.75rem);
    font-weight: 700;
}

.section-subtitle {
    margin: 0;
    color: var(--umx-muted);
    font-size: 0.95rem;
}

.centered {
    text-align: center;
}

.notice-box {
    border-radius: 14px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 226, 255, 0.35);
    background: rgba(19, 83, 142, 0.38);
    color: var(--umx-muted);
}

@media (max-width: 960px) {
    .umx-grid.cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .umx-nav {
        position: static;
    }
}

@media (max-width: 720px) {
    .umx-page {
        padding: 0.85rem;
    }

    .umx-grid.cols-2,
    .umx-grid.cols-3 {
        grid-template-columns: 1fr;
    }

    .umx-card {
        border-radius: 14px;
    }

    .umx-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }

    .umx-nav-links {
        justify-content: flex-start;
    }

    .umx-status-list {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .umx-nav-brand-title {
        font-size: 0.9rem;
    }

    .umx-nav-link {
        min-height: 40px;
    }

    .umx-status-item {
        font-size: 0.74rem;
        padding: 0.3rem 0.54rem;
    }
}

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