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

:root {
    color-scheme: dark;
    font-family: 'Rajdhani', sans-serif;
    color: #f7fbff;
    background: #070b18;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: #070b18;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(180deg, rgba(4, 8, 22, 0.34), rgba(7, 7, 21, 0.88) 55%, #070712),
        url('../images/content/rinkside_background.jpg') center top / cover fixed no-repeat,
        #070b18;
}

.welcome-page {
    position: relative;
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 28px;
}

.welcome-close {
    position: absolute;
    z-index: 2;
    top: 20px;
    right: 0;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 50%;
    background: rgba(5, 10, 28, 0.78);
    color: #fff;
    font: 400 2rem/1 Arial, sans-serif;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

.welcome-close:hover,
.welcome-close:focus-visible {
    background: #0769ba;
    transform: scale(1.06);
}

.welcome-hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 24px 42px;
    text-align: center;
}

.welcome-logo-link {
    display: inline-block;
    max-width: min(520px, 84vw);
    margin-bottom: 8px;
}

.welcome-logo {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 26px rgba(0, 191, 255, 0.3));
}

.welcome-kicker,
.welcome-eyebrow {
    margin: 0;
    color: #69dcff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.5;
}

.welcome-hero h1 {
    margin: 13px 0 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.08;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.78);
}

.welcome-hero h1 span {
    color: #56d9ff;
    text-shadow: 0 0 24px rgba(0, 172, 255, 0.52);
}

.welcome-intro {
    max-width: 720px;
    margin: 0 auto;
    color: #edf5ff;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 2px 14px #000;
}

.welcome-human {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    max-width: 900px;
    margin: 0 auto 64px;
    padding: 24px 28px;
    border: 1px solid rgba(77, 204, 255, 0.56);
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(8, 29, 61, 0.88), rgba(25, 17, 47, 0.89));
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.38), inset 0 0 32px rgba(0, 140, 255, 0.08);
    backdrop-filter: blur(10px);
}

.welcome-human-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #11b9f4, #5647e8);
    color: white;
    font-size: 1.9rem;
    box-shadow: 0 0 22px rgba(42, 184, 255, 0.34);
}

.welcome-human h2,
.welcome-section-heading h2,
.welcome-cta h2 {
    margin: 5px 0 7px;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
    line-height: 1.25;
}

.welcome-human p:not(.welcome-eyebrow) {
    margin: 0;
    color: #e5edf8;
    font-size: 1.13rem;
    font-weight: 500;
    line-height: 1.5;
}

.welcome-features {
    padding: 0 0 68px;
}

.welcome-section-heading {
    margin: 0 auto 26px;
    text-align: center;
}

.welcome-section-heading h2 {
    margin: 9px 0 5px;
    font-size: clamp(1.65rem, 3.5vw, 2.5rem);
}

.welcome-section-heading > p:last-child {
    margin: 0;
    color: #e0eaf6;
    font-size: 1.15rem;
    font-weight: 600;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.welcome-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(160, 203, 255, 0.24);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(12, 19, 42, 0.94), rgba(22, 13, 39, 0.94));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) {
    .welcome-card:hover {
        transform: translateY(-4px);
        border-color: rgba(88, 217, 255, 0.72);
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.44), 0 0 24px rgba(0, 161, 255, 0.12);
    }
}

.welcome-card-art,
.welcome-card-image-link,
.welcome-card-image-button {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    overflow: hidden;
    background: #0a1324;
}

.welcome-card-image-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.welcome-card-image-link:focus-visible,
.welcome-card-image-button:focus-visible {
    outline: 3px solid #72ddff;
    outline-offset: -4px;
}

.welcome-card-art img,
.welcome-card-image-link img,
.welcome-card-image-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    background: #0a1324;
}

.welcome-development-dialog {
    position: fixed;
    width: min(680px, calc(100% - 32px));
    max-height: min(90vh, 760px);
    padding: 34px;
    overflow: auto;
    border: 1px solid rgba(88, 217, 255, 0.72);
    border-radius: 22px;
    background:
        linear-gradient(125deg, rgba(8, 25, 55, 0.97), rgba(37, 16, 59, 0.97)),
        #10152b;
    color: #f7fbff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 161, 255, 0.2);
}

.welcome-development-dialog::backdrop {
    background: rgba(2, 5, 16, 0.78);
    backdrop-filter: blur(5px);
}

.welcome-development-dialog[open] {
    animation: welcome-dialog-in 170ms ease-out;
}

.welcome-development-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(4, 9, 25, 0.72);
    color: #fff;
    font: 400 1.8rem/1 Arial, sans-serif;
    cursor: pointer;
}

.welcome-development-close:hover,
.welcome-development-close:focus-visible {
    background: #0769ba;
}

.welcome-development-dialog > img {
    display: block;
    width: min(250px, 70%);
    aspect-ratio: 1;
    margin: 0 auto 22px;
    border: 2px solid rgba(105, 220, 255, 0.6);
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

.welcome-development-dialog > div {
    text-align: center;
}

.welcome-development-dialog h2 {
    margin: 9px 0 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.3rem, 4vw, 1.9rem);
    line-height: 1.3;
}

.welcome-development-dialog > div > p:last-child {
    margin: 0;
    color: #e5edf8;
    font-size: 1.16rem;
    font-weight: 600;
    line-height: 1.5;
}

@keyframes welcome-dialog-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.welcome-card-copy {
    padding: 18px 20px 21px;
}

.welcome-card-copy-link,
.welcome-card-copy-button {
    display: block;
    width: 100%;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
}

.welcome-card-copy-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.welcome-card-copy-link:focus-visible,
.welcome-card-copy-button:focus-visible {
    outline: 3px solid #72ddff;
    outline-offset: -5px;
}

.welcome-card-tag {
    color: #72ddff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.welcome-card h3,
.welcome-card-title {
    display: block;
    margin: 7px 0 6px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.02rem;
    line-height: 1.35;
}

.welcome-card p,
.welcome-card-description {
    display: block;
    margin: 0;
    color: #dce7f5;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.45;
}

.welcome-cta {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 36px;
    border: 1px solid rgba(115, 106, 255, 0.55);
    border-radius: 22px;
    background: linear-gradient(125deg, rgba(9, 29, 66, 0.91), rgba(40, 15, 63, 0.92));
    text-align: center;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(10px);
}

.welcome-cta h2 {
    margin: 8px 0 6px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.welcome-cta > p:not(.welcome-eyebrow) {
    margin: 0 0 20px;
    color: #e6efff;
    font-size: 1.14rem;
    font-weight: 600;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.welcome-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 999px;
    background: linear-gradient(100deg, #146fe5, #6c42d9);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(25, 94, 220, 0.36);
    transition: filter 160ms ease, transform 160ms ease;
}

.welcome-button:hover,
.welcome-button:focus-visible {
    filter: brightness(1.18);
    transform: translateY(-2px);
}

.welcome-login {
    color: #a9eaff;
    font-size: 1.02rem;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.welcome-footer {
    padding: 24px 0 0;
    color: rgba(232, 241, 255, 0.68);
    font-size: 0.95rem;
    text-align: center;
}

@media (max-width: 900px) {
    .welcome-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {
    body {
        background-attachment: scroll, scroll, scroll;
    }

    .welcome-page {
        width: min(100% - 24px, 520px);
        padding: 34px 0 22px;
    }

    .welcome-close {
        top: 9px;
        right: 2px;
        width: 40px;
        height: 40px;
    }

    .welcome-hero {
        padding: 13px 4px 30px;
    }

    .welcome-logo-link {
        max-width: 82vw;
        margin: 8px 0 4px;
    }

    .welcome-kicker,
    .welcome-eyebrow {
        font-size: 0.66rem;
        letter-spacing: 0.13em;
    }

    .welcome-hero h1 {
        margin-top: 10px;
    }

    .welcome-intro {
        font-size: 1.13rem;
    }

    .welcome-human {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 13px;
        margin-bottom: 48px;
        padding: 19px 16px;
        border-radius: 16px;
    }

    .welcome-human-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 1.45rem;
    }

    .welcome-human h2 {
        font-size: 1.12rem;
    }

    .welcome-human p:not(.welcome-eyebrow) {
        font-size: 1.02rem;
    }

    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .welcome-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        min-height: 142px;
    }

    .welcome-card-art,
    .welcome-card-image-link,
    .welcome-card-image-button {
        align-self: center;
        width: 112px;
        height: 112px;
        min-height: 0;
    }

    .welcome-card-copy {
        align-self: center;
        padding: 13px 14px;
    }

    .welcome-card-tag {
        font-size: 0.57rem;
        letter-spacing: 0.1em;
    }

    .welcome-card h3 {
        font-size: 0.9rem;
    }

    .welcome-card p {
        font-size: 0.97rem;
        line-height: 1.35;
    }

    .welcome-cta {
        padding: 26px 17px 28px;
        border-radius: 17px;
    }

    .welcome-button {
        width: 100%;
        max-width: 340px;
        font-size: 0.74rem;
    }

    .welcome-development-dialog {
        padding: 28px 20px 24px;
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
