@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 600;
    src: url("assets/golos-text-600.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 700;
    src: url("assets/golos-text-700.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 800;
    src: url("assets/golos-text-800.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 900;
    src: url("assets/golos-text-900.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Unicephalon Cyr";
    src: url("assets/unicephalon.otf") format("opentype");
    font-display: swap;
}

@font-face {
    font-family: "Space Ranger Rus";
    src: url("assets/spaceranger-rus.otf") format("opentype");
    font-display: swap;
}

:root {
    --orbitus-navy: #0a0033;
    --orbitus-panel: #140a3a;
    --orbitus-yellow: #f3bc00;
    --orbitus-ink: #040b22;
    --orbitus-white: #ffffff;
    --orbitus-copy: "Golos Text", Arial, Helvetica, sans-serif;
    --orbitus-display: "Unicephalon Cyr", "Arial Black", sans-serif;
    --orbitus-brand: "Space Ranger Rus", "Arial Black", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    overflow-x: hidden;
}

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

.figma-body {
    background-color: var(--orbitus-navy);
    background-image: url("assets/coop-bg.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--orbitus-white);
    font-family: var(--orbitus-copy);
    font-weight: 700;
}

.figma-shell {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

.figma-canvas {
    container-type: inline-size;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.desktop-canvas {
    height: min(1585px, calc(123.8406vw));
    max-height: 1585px;
    max-width: 1280px;
    min-width: 320px;
}

.mobile-canvas {
    display: none;
}

.canvas-bg {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.figma-header,
.figma-footer {
    background: var(--orbitus-navy);
    left: 0;
    overflow: hidden;
    position: absolute;
    width: 100%;
    z-index: 2;
}

.figma-header {
    height: 8.145cqw;
    min-height: 26px;
    top: 0;
}

.logo-link {
    display: block;
    height: 6.768cqw;
    left: 1.797cqw;
    position: absolute;
    top: 0.758cqw;
    width: 11.105cqw;
}

.orbitus-logo {
    display: block;
    height: 111.34%;
    left: -6.78%;
    object-fit: contain;
    position: absolute;
    top: -11.23%;
    width: 112.35%;
}

.top-menu {
    align-items: center;
    display: flex;
    font-family: var(--orbitus-display);
    font-size: 1.524cqw;
    gap: 5.125cqw;
    left: 19.279cqw;
    line-height: 1;
    position: absolute;
    text-transform: lowercase;
    top: 3.472cqw;
    white-space: nowrap;
}

.top-menu a {
    color: var(--orbitus-white);
}

.top-menu a.active {
    color: var(--orbitus-yellow);
}

.top-menu span {
    text-decoration: underline;
}

.mode-menu {
    align-items: center;
    display: flex;
    gap: 3.332cqw;
    left: 28.801cqw;
    position: absolute;
    top: 12.891cqw;
    z-index: 2;
}

.mode-menu a {
    color: var(--orbitus-yellow);
    display: inline-flex;
    font-size: 1.641cqw;
    font-weight: 700;
    line-height: 1;
    padding: 0.39cqw 0.5cqw 0.46cqw;
    text-align: center;
    white-space: nowrap;
}

.mode-menu a.selected {
    background: var(--orbitus-white);
    color: var(--orbitus-ink);
    min-width: 11.837cqw;
}

.rules-layout {
    font-size: 1.348cqw;
    font-weight: 700;
    left: 12.599cqw;
    line-height: 1.19;
    position: absolute;
    top: 19.541cqw;
    width: 70.671cqw;
    z-index: 1;
}

.rules-block {
    position: absolute;
    width: 70.671cqw;
}

.rules-block h1,
.rules-block h2 {
    font-size: 1.524cqw;
    line-height: normal;
    margin: 0 0 1.21cqw;
}

.rules-block p {
    margin: 0 0 1.2cqw;
}

.rules-block mark,
.brand-word,
.mobile-rules-block mark {
    background: transparent;
    color: var(--orbitus-yellow);
}

.brand-word {
    font-family: var(--orbitus-brand);
    font-size: 1.582cqw;
    font-weight: 400;
}

.objective {
    top: 0;
}

.setup {
    display: flex;
    gap: 3.55cqw;
    top: 18.044cqw;
}

.setup-copy {
    width: 41.928cqw;
}

.game-map {
    height: 21.799cqw;
    margin-top: -5.86cqw;
    object-fit: cover;
    width: 28.871cqw;
}

.gameplay {
    top: 41.918cqw;
}

.ending {
    top: 66.854cqw;
}

.road-menu {
    background: var(--orbitus-panel);
    height: 13.683cqw;
    left: 85.027cqw;
    padding: 2.34cqw 2.608cqw 2cqw 0;
    position: absolute;
    text-align: right;
    top: 50.424cqw;
    width: 14.972cqw;
    z-index: 2;
}

.road-menu img {
    height: 8.233cqw;
    position: absolute;
    right: 0.938cqw;
    top: 2.901cqw;
    width: 0.762cqw;
}

.road-menu a {
    color: rgba(255, 255, 255, 0.5);
    display: block;
    font-size: 1.348cqw;
    line-height: 1.23;
    margin-bottom: 0.94cqw;
    white-space: nowrap;
}

.road-menu a.active {
    color: var(--orbitus-white);
}

.figma-footer {
    height: 22.121cqw;
    top: 101.719cqw;
}

.help-panel {
    height: 12.804cqw;
    left: 50%;
    position: absolute;
    top: 2.695cqw;
    transform: translateX(-50%);
    width: 29.974cqw;
}

.help-bg {
    height: 104%;
    inset: 0;
    position: absolute;
    width: 101.5%;
}

.help-title,
.help-text,
.bot-link {
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

.help-title {
    color: var(--orbitus-yellow);
    font-size: 1.231cqw;
    line-height: 0.9;
    margin: 0;
    top: 3.05cqw;
    white-space: nowrap;
}

.help-text {
    font-size: 0.938cqw;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
    text-align: center;
    top: 5.33cqw;
    white-space: nowrap;
}

.bot-link {
    background: var(--orbitus-white);
    display: block;
    height: 2.496cqw;
    overflow: hidden;
    top: 7.27cqw;
    width: 12.344cqw;
}

.bot-link img {
    display: block;
    height: 1.073cqw;
    margin: 0.72cqw auto 0;
    width: 10.783cqw;
}

.gikozavr-logo {
    height: 2.696cqw;
    left: 46.967cqw;
    position: absolute;
    top: 16.906cqw;
    width: 6.094cqw;
}

@media (max-width: 700px) {
    .figma-shell {
        align-items: flex-start;
        justify-content: center;
    }

    .desktop-canvas {
        display: none;
    }

    .mobile-canvas {
        background: var(--orbitus-navy);
        display: block;
        height: min(2121px, 493.2558vw);
        max-height: 2121px;
        max-width: 430px;
        min-width: 0;
    }

    .mobile-header,
    .mobile-footer {
        background: var(--orbitus-navy);
        left: 0;
        overflow: hidden;
        position: absolute;
        width: 100%;
        z-index: 2;
    }

    .mobile-header {
        height: 25.741cqw;
        top: 0;
    }

    .mobile-logo-link {
        display: block;
        height: 18.704cqw;
        left: 20.416cqw;
        position: absolute;
        top: 4.907cqw;
        width: 30.648cqw;
    }

    .mobile-orbitus-logo {
        height: 111.34%;
        left: -6.78%;
        object-fit: contain;
        position: absolute;
        top: -11.23%;
        width: 112.35%;
    }

    .mobile-menu-button {
        appearance: none;
        background: transparent;
        border: 0;
        height: 12.477cqw;
        left: 82.791cqw;
        padding: 0;
        position: absolute;
        top: 6.633cqw;
        width: 10.888cqw;
    }

    .mobile-menu-button img {
        display: block;
        height: 100%;
        width: 100%;
    }

    .mobile-mode-menu {
        align-items: center;
        display: flex;
        gap: 1.95cqw;
        left: 6.047cqw;
        position: absolute;
        top: 30.465cqw;
        z-index: 2;
    }

    .mobile-mode-menu a {
        color: var(--orbitus-yellow);
        display: inline-flex;
        font-size: 4.815cqw;
        font-weight: 700;
        justify-content: center;
        line-height: 1;
        padding: 0.95cqw 0;
        text-align: center;
        white-space: nowrap;
    }

    .mobile-mode-menu a.selected {
        background: var(--orbitus-white);
        color: var(--orbitus-ink);
        width: 32.315cqw;
    }

    .mobile-mode-menu a:nth-child(2) {
        width: 36.481cqw;
    }

    .mobile-mode-menu a:nth-child(3) {
        width: 11.296cqw;
    }

    .mobile-rules-layout {
        color: var(--orbitus-white);
        font-size: 4.259cqw;
        font-weight: 700;
        line-height: 1.2;
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    .mobile-rules-block {
        left: 10.86cqw;
        position: absolute;
        width: 78.889cqw;
    }

    .mobile-rules-block h1,
    .mobile-rules-block h2 {
        font-size: 4.815cqw;
        line-height: normal;
        margin: 0 0 4.08cqw;
    }

    .mobile-rules-block p {
        margin: 0 0 3.2cqw;
    }

    .mobile-rules-block .brand-word {
        font-size: 5cqw;
    }

    .mobile-objective {
        top: 48.891cqw;
        width: 77.871cqw;
    }

    .mobile-setup {
        top: 125.94cqw;
    }

    .mobile-game-map {
        display: block;
        height: 66.111cqw;
        left: -4.814cqw;
        object-fit: cover;
        position: relative;
        top: 1.6cqw;
        width: 87.558cqw;
    }

    .mobile-gameplay {
        top: 250.558cqw;
    }

    .mobile-ending {
        top: 378.458cqw;
    }

    .mobile-footer {
        height: 57.5cqw;
        top: 435.814cqw;
    }

    .mobile-help-panel {
        height: 49.167cqw;
        left: 5.277cqw;
        position: absolute;
        top: 8.333cqw;
        width: 88.704cqw;
    }

    .mobile-help-bg {
        height: 100%;
        inset: 0;
        position: absolute;
        width: 100%;
    }

    .mobile-help-title,
    .mobile-help-text,
    .mobile-bot-link,
    .mobile-gikozavr-logo {
        position: absolute;
    }

    .mobile-help-title {
        color: var(--orbitus-yellow);
        font-size: 3.889cqw;
        line-height: 0.9;
        left: 28.229cqw;
        margin: 0;
        top: 8.425cqw;
        white-space: nowrap;
    }

    .mobile-help-text {
        font-size: 2.963cqw;
        font-weight: 600;
        left: 12.72cqw;
        line-height: 1.1;
        margin: 0;
        text-align: center;
        top: 15.083cqw;
        white-space: nowrap;
        width: 74.629cqw;
    }

    .mobile-bot-link {
        background: var(--orbitus-white);
        display: block;
        height: 7.887cqw;
        left: 28.676cqw;
        overflow: hidden;
        top: 21.749cqw;
        width: 39.011cqw;
    }

    .mobile-bot-link img {
        display: block;
        height: 3.392cqw;
        margin: 2.29cqw auto 0;
        width: 34.076cqw;
    }

    .mobile-gikozavr-logo {
        height: 8.519cqw;
        left: 35.093cqw;
        top: 36.481cqw;
        width: 19.26cqw;
    }
}
