@font-face {
    font-family: "Ethnocentric";
    src: url("fonts/Ethnocentric-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

:root {
    --bg-top: #050814;
    --bg-bottom: #02030a;
    --text: #eef4ff;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg-bottom);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    cursor: url("cursors/pointer_b.png") 4 2, auto;
}

body {
    overflow-x: hidden;
}

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

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

#space-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 14% 80%, rgba(110, 160, 255, 0.08), transparent 24%),
            radial-gradient(circle at 84% 18%, rgba(170, 110, 255, 0.04), transparent 20%),
            linear-gradient(180deg, rgba(4, 7, 18, 0.12), rgba(2, 3, 10, 0.38));
    pointer-events: none;
}

.hero-mark-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(110px, 14vw, 220px);
    transform: translate(-50%, -68%);
    opacity: 1;
    filter:
            brightness(0)
            saturate(100%)
            invert(90%)
            sepia(24%)
            saturate(420%)
            hue-rotate(356deg)
            brightness(101%)
            contrast(96%);
    transition:
            top 220ms ease,
            left 220ms ease,
            width 220ms ease,
            transform 220ms ease,
            opacity 220ms ease;
}

.hero-mark-wrap::before {
    content: "NIGHTINGALE GAMES";
    position: absolute;
    left: 50%;
    top: 51.5%;
    transform: translate(-50%, 58px);
    color: #D2E4FC;
    font-family: "Ethnocentric", sans-serif;
    font-size: clamp(0.72rem, 1vw, 0.75rem);
    line-height: 1;
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 1;
    transition:
            top 220ms ease,
            left 220ms ease,
            transform 220ms ease,
            opacity 220ms ease,
            font-size 220ms ease,
            letter-spacing 220ms ease;
}

.hero-mark-wrap::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50.5%;
    width: clamp(130px, 16vw, 190px);
    height: 2px;
    transform: translate(-50%, 92px);
    background: rgba(120, 170, 230, 0.51);
    transition:
            top 220ms ease,
            left 220ms ease,
            width 220ms ease,
            transform 220ms ease,
            opacity 220ms ease;
}

.hero-mark.is-docked {
    position: fixed;
    left: 18px;
    top: 16px;
    width: 58px;
    transform: none;
    opacity: 0.95;
    z-index: 20;
}

.hero-mark-wrap.docked::before {
    left: 86px;
    top: 22px;
    transform: translate(0, 0);
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    opacity: 1;
}

.hero-mark-wrap.docked::after {
    left: 86px;
    top: 42px;
    width: 112px;
    height: 2px;
    transform: translate(0, 0);
    opacity: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 100vh;
    padding: 18vh 0 32px;
}

.store-widget {
    position: fixed;
    right: 32px;
    bottom: 24px;
    z-index: 25;
    width: min(646px, calc(100vw - 64px));
}

.store-widget iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    background: rgba(10, 14, 24, 0.95);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.hero-widget {
    margin-bottom: max(0px, env(safe-area-inset-bottom));
}

@media (max-width: 860px) {
    .store-widget {
        left: 50%;
        right: auto;
        bottom: 20px;
        width: min(646px, calc(100vw - 40px));
        transform: translateX(-50%);
    }

    .store-widget iframe {
        width: 100%;
        height: 190px;
    }
}

@media (max-width: 700px) {
    html, body {
        cursor: auto;
    }

    .hero-mark {
        width: clamp(96px, 22vw, 150px);
        transform: translate(-50%, -66%);
    }

    .hero-mark-wrap::before {
        transform: translate(-50%, 46px);
        font-size: 0.62rem;
        letter-spacing: 0.05em;
    }

    .hero-mark-wrap::after {
        transform: translate(-50%, 74px);
        width: 120px;
    }

    .hero-mark.is-docked {
        left: 12px;
        top: 12px;
        width: 48px;
    }

    .hero-mark-wrap.docked::before {
        left: 68px;
        top: 18px;
        font-size: 0.48rem;
        letter-spacing: 0.03em;
    }

    .hero-mark-wrap.docked::after {
        left: 68px;
        top: 34px;
        width: 88px;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-inner {
        width: min(1100px, calc(100% - 24px));
        padding: 84px 0 20px;
    }

    .store-widget {
        bottom: 16px;
        width: calc(100vw - 24px);
    }

    .store-widget iframe {
        height: 190px;
        border-radius: 12px;
    }
}

@media (max-width: 420px) {
    .hero-mark-wrap::before {
        transform: translate(-50%, 40px);
        font-size: 0.52rem;
        letter-spacing: 0.035em;
    }

    .hero-mark-wrap::after {
        transform: translate(-50%, 66px);
        width: 96px;
    }

    .hero-mark-wrap.docked::before {
        top: 16px;
        font-size: 0.42rem;
    }

    .hero-mark-wrap.docked::after {
        top: 30px;
        width: 76px;
    }

    .hero-inner {
        width: calc(100% - 20px);
        padding-top: 76px;
    }

    .store-widget {
        width: calc(100vw - 20px);
    }

    .store-widget iframe {
        height: 184px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-mark,
    .hero-mark-wrap::before,
    .hero-mark-wrap::after {
        transition: none;
    }
}
