:root {
    color-scheme: dark;
    touch-action: manipulation;
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    background: #000;
    color: #e6ebe9;
    font-synthesis: none;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: #000;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
input,
textarea,
[contenteditable='true'] {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}
button,
input {
    font: inherit;
}
button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s;
}
button:disabled {
    cursor: wait;
    opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible {
    outline: 2px solid #a4f5db;
    outline-offset: 4px;
}
a {
    color: inherit;
}
@media (prefers-reduced-motion: reduce) {
    button {
        transition: none;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    -webkit-clip-path: inset(50%);
            clip-path: inset(50%);
    white-space: nowrap;
    margin: -1px;
    padding: 0;
    border: 0;
}

.page_fullscreen {
    overflow: hidden;
}

.button_primary {
    border: 1px solid #e7ebde;
    background: #e7ebde;
    color: #13222a;
    border-radius: 5px;
    padding: 11px 34px;
    font-size: 12px;
    font-weight: 650;
}

.button_primary:hover {
    background: #fff;
}

.button_secondary {
    border: 1px solid #33434d;
    color: #b9c8cb;
    background: transparent;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 10px;
}

.button_secondary:hover {
    background: #20313c;
}

@media (max-width: 650px) {
    .button_primary {
        padding: 8px 24px;
    }
}

.button_secondary:disabled {
    cursor: default;
    opacity: 0.35;
}

@media (max-width: 650px) {
    .bonus .button_primary {
        font-size: 9px;
        padding: 6px 15px;
    }
}

@media (max-width: 650px) {
    .title-menu__actions .button_primary {
        font-size: 10px;
        padding: 8px 13px;
    }
}

@media (max-width: 650px) {
    .title-menu__actions .button_secondary {
        font-size: 10px;
        padding: 6px 12px;
    }
}

.game-footer .button_primary {
    padding: 6px 12px;
    font-size: 10px;
}

.game-app_touch .game-footer__options .button_secondary,
.game-app_touch .game-footer__options .button_primary {
    min-height: 44px;
    font-size: 11px;
}

.game-app_tv .button_primary,
.game-app_tv .button_secondary {
    min-height: 44px;
    font-size: 18px;
    font-size: clamp(18px, 1.2vw, 26px);
}

.game-app_tv .button:focus {
    outline: 3px solid #a4f5db;
    outline-offset: 3px;
}

.modal-card__content .button,
.modal-card__footer .button,
.home-panel__content .button,
.game-app_touch .modal-card__content .button,
.game-app_touch .modal-card__footer .button,
.game-app_touch .home-panel__content .button {
    font-size: inherit;
}

.home-panel__content .button {
    flex-shrink: 0;
    white-space: nowrap;
}

.screen-navigation {
    position: absolute;
    top: 12px;
    top: max(12px, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    font:
        10px ui-monospace,
        monospace;
    color: #d5c099;
}

.screen-navigation[hidden] {
    display: none;
}

.screen-navigation__number {
    white-space: nowrap;
}

.screen-navigation__button {
    min-width: 32px;
    min-height: 32px;
    font-size: 16px;
}

@media (pointer: coarse) {
    .screen-navigation__button {
        min-width: 44px;
        min-height: 44px;
    }
}

.game-app_touch .screen-navigation__button,
.game-app_tv .screen-navigation__button {
    min-width: 44px;
    min-height: 44px;
}

.fullscreen-button {
    position: fixed;
    top: 12px;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    right: max(12px, env(safe-area-inset-right));
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #0b121c;
}

.fullscreen-button__icon {
    display: block;
    width: 18px;
    height: 18px;
}

.fullscreen-button[hidden] {
    display: none;
}

.fullscreen-button__exit,
.fullscreen-button[aria-pressed='true'] .fullscreen-button__enter {
    display: none;
}

.fullscreen-button[aria-pressed='true'] .fullscreen-button__exit {
    display: block;
}

@media (pointer: coarse) {
    .fullscreen-button {
        width: 44px;
        height: 44px;
    }
}

.game-app_touch .fullscreen-button,
.game-app_tv .fullscreen-button {
    width: 44px;
    height: 44px;
}

@media (orientation: portrait) {
    .game-app_touch:not(.game-app_selecting):not(.game-app_tv) .fullscreen-button {
        top: auto;
        right: 68px;
        right: calc(max(12px, env(safe-area-inset-right)) + 56px);
        bottom: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
    }
}

.home-button {
    position: fixed;
    top: 12px;
    top: max(12px, env(safe-area-inset-top));
    left: 12px;
    left: max(12px, env(safe-area-inset-left));
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #0b121c;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.home-button__icon {
    display: block;
    width: 18px;
    height: 18px;
}

.home-button[aria-expanded='true'] {
    z-index: 1101;
}

.game-app_selecting .home-button {
    display: none;
}

@media (pointer: coarse) {
    .home-button {
        width: 44px;
        height: 44px;
    }
}

.game-app_touch .home-button,
.game-app_tv .home-button {
    width: 44px;
    height: 44px;
}

.game-app {
    max-width: 1192px;
    margin: auto;
    padding: 36px 44px 24px;
}

.game-app:not(.game-app_touch):not(.game-app_selecting) {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
}

@media (max-width: 650px) {
    .game-app {
        padding: 22px 12px;
    }
}

.game-app_fullscreen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    max-width: none;
    width: 100%;
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding: 8px;
    background: #000;
    overflow: auto;
}

.game-app_touch {
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right))
        max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}

@media (orientation: portrait) {
    .game-app_touch:not(.game-app_selecting):not(.game-app_tv) {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100svh;
    }
}

@media (orientation: landscape) {
    .game-app_touch {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100svh;
        min-height: 0;
    }
}

.game-app_tv {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: 100vh;
    min-height: 0;
    padding: 3vh 4vw;
    overflow: hidden;
}

.hud {
    gap: 34px;
    align-items: center;
    background: #111d28;
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    -webkit-clip-path: inset(50%);
            clip-path: inset(50%);
    white-space: nowrap;
    padding: 0;
    margin: -1px;
    border: 0;
}

.hud__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font:
        8px ui-monospace,
        monospace;
    letter-spacing: 1.6px;
    color: #9baeb6;
}

.hud__value {
    font:
        20px ui-monospace,
        monospace;
    letter-spacing: 1px;
    color: #e8ebdf;
}

.hud__sector {
    margin-left: auto;
    text-align: right;
}

@media (max-width: 650px) {
    .hud {
        gap: 19px;
    }
    .hud__item {
        font-size: 6px;
        letter-spacing: 0.7px;
    }
    .hud__value {
        font-size: 16px;
    }
}

@media (max-width: 650px) {
    .hud__sector .hud__value {
        font-size: 12px;
    }
    .hud {
        gap: 14px;
    }
}

.hud[hidden] {
    display: none;
}

.bonus {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: static;
    inset: auto;
    padding: 20px;
    background: #0b121c;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
}

.bonus[hidden] {
    display: none;
}

.bonus__heading {
    font-size: 30px;
    margin: 12px 0;
}

.bonus__summary,
.bonus__hint {
    font-size: 11px;
    color: #aac2c7;
    margin: 0 0 10px;
}

.bonus__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    margin: 12px 0 22px;
    width: min(250px, 90%);
    font:
        14px ui-monospace,
        monospace;
    letter-spacing: 2px;
    color: #708c9c;
}

.bonus__item {
    display: flex;
    justify-content: space-between;
    padding: 4px 15px;
    border-radius: 3px;
}

.bonus__pointer {
    visibility: hidden;
    color: #bff8d3;
}

.bonus__item_active {
    background: #24483f;
    color: #e9f8df;
}

.bonus__item_active .bonus__pointer {
    visibility: visible;
}

.bonus .bonus__hint {
    margin: 10px 0 0;
    color: #829ba9;
    font-size: 10px;
}

@media (max-width: 650px) {
    .bonus__heading {
        font-size: 18px;
        margin: 5px 0;
    }
    .bonus__summary,
    .bonus__hint {
        font-size: 7px;
        margin-bottom: 3px;
    }
    .bonus__list {
        font-size: 9px;
        gap: 0;
        margin: 4px 0 9px;
        width: 180px;
    }
    .bonus__item {
        padding: 2px 12px;
    }
    .bonus .bonus__hint {
        font-size: 7px;
        margin-top: 4px;
    }
}

.bonus__eyebrow,
.bonus__heading,
.bonus > .bonus__summary,
.bonus__list {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    -webkit-clip-path: inset(50%);
            clip-path: inset(50%);
    white-space: nowrap;
    padding: 0;
    margin: -1px;
    border: 0;
}

@media (max-width: 650px) {
    .bonus {
        padding: 12px;
    }
}

.game-app_fullscreen .bonus {
    flex-shrink: 0;
}

.game-footer .bonus {
    display: contents;
}

.game-footer .bonus[hidden] {
    display: none;
}

.game-footer .bonus .bonus__hint {
    margin: 0;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: normal;
}

.game-app_legacy .bonus {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 0;
    background: none;
    border: 0;
}

.game-app_touch .bonus .button_primary {
    min-height: 44px;
}

.score-row {
    height: var(--score-row-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font:
        13px ui-monospace,
        monospace;
    letter-spacing: 1px;
    color: #bff8d3;
}

.score-row__score {
    color: #edcc83;
}

.score-row_player {
    color: #5cecff;
    background: #1b4c533f;
}

.score-row_player .score-row__score {
    color: #5cecff;
}

@media (max-width: 650px) {
    .score-row {
        font-size: 9px;
        letter-spacing: 0.6px;
    }
}

@media (max-width: 360px) {
    .score-row {
        font-size: 8px;
    }
}

.settings-toggle {
    position: fixed;
    right: 12px;
    right: max(12px, env(safe-area-inset-right));
    bottom: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 10;
    display: flex;
}

.settings-toggle__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 32px;
    padding: 4px 8px;
    background: #0b121ce6;
    box-shadow: 0 2px 8px #0009;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.settings-toggle__gear {
    display: block;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.game-app_touch .settings-toggle__button,
.game-app_tv .settings-toggle__button {
    min-height: 44px;
}

.fps-counter {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    padding: 4px 6px;
    border-radius: 3px;
    background: #000c;
    color: #fff;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.2;
    pointer-events: none;
}

.fps-counter[hidden] {
    display: none;
}

.game-app_tv .fps-counter {
    font-size: 20px;
}

.game-viewport {
    position: relative;
    border: 1px solid #242424;
    border-radius: 9px 9px 0 0;
    overflow: hidden;
    background: #000;
    box-shadow: none;
}

.game-viewport__display {
    position: relative;
    background: #000;
    isolation: isolate;
}

.game-viewport__display .game-viewport__canvas {
    display: block;
    width: 100%;
    outline: none;
    aspect-ratio: 256/192;
    image-rendering: pixelated;
    background: #000;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.game-app:not(.game-app_touch):not(.game-app_selecting) .game-viewport,
.game-app_fullscreen .game-viewport {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.game-app_fullscreen .game-viewport {
    border-radius: 0;
}

.game-app:not(.game-app_touch):not(.game-app_selecting) .game-viewport__display,
.game-app_fullscreen .game-viewport__display {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.game-app:not(.game-app_touch):not(.game-app_selecting) .game-viewport__canvas,
.game-app_fullscreen .game-viewport__canvas {
    flex: 1;
    min-height: 0;
    height: 0;
    width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
}

.game-viewport__canvas[data-graphics='remastered'],
.game-viewport__canvas[data-graphics='split'] {
    image-rendering: auto;
}

.game-viewport__canvas_grayscale {
    -webkit-filter: grayscale(1);
            filter: grayscale(1);
}

.game-viewport__split-divider {
    position: absolute;
    z-index: 3;
    width: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #eaffff;
    transform: translateX(-50%);
    cursor: ew-resize;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

.game-viewport__split-divider[hidden] {
    display: none;
}

.game-viewport__split-divider::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 1px);
    width: 2px;
    background: #d0faff;
    box-shadow: 0 0 0 1px #06121c99;
}

.game-viewport__split-grip {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 48px;
    border: 1px solid #bcebf1;
    border-radius: 7px;
    background: #102330ed;
    box-shadow: 0 2px 12px #0008;
    transform: translate(-50%, -50%);
}

.game-viewport__split-icon {
    width: 25px;
    height: 25px;
    pointer-events: none;
}

.game-viewport__split-divider:focus-visible {
    outline: none;
}

.game-viewport__split-divider:focus-visible .game-viewport__split-grip {
    outline: 2px solid #a4f5db;
    outline-offset: 3px;
}

.game-viewport__split-divider:hover {
    background: transparent;
}

.game-app_touch .game-viewport__canvas {
    touch-action: manipulation;
}

@media (orientation: portrait) {
    .game-app_touch:not(.game-app_tv) .game-viewport {
        flex: none;
        margin-top: auto;
    }
    .game-app_touch:not(.game-app_tv) .game-viewport__canvas {
        flex: none;
        height: auto;
    }
}

@media (orientation: landscape) {
    .game-app_touch .game-viewport {
        display: flex;
        flex: 1;
        min-height: 0;
        flex-direction: column;
    }
    .game-app_touch .game-viewport__display {
        display: flex;
        flex: 1;
        min-height: 0;
        flex-direction: column;
    }
    .game-app_touch .game-viewport__canvas {
        flex: 1;
        min-height: 0;
        height: 0;
        width: 100%;
        aspect-ratio: auto;
        object-fit: contain;
    }
}

.game-app_legacy:not(.game-app_touch):not(.game-app_selecting):not(.game-app_tv) .game-viewport,
.game-app_legacy:not(.game-app_touch):not(.game-app_selecting):not(.game-app_tv)
    .game-viewport__display,
.game-app_legacy:not(.game-app_tv) .game-viewport,
.game-app_legacy:not(.game-app_tv) .game-viewport__display {
    display: block;
    flex: none;
}

.game-app_legacy:not(.game-app_touch):not(.game-app_selecting):not(.game-app_tv)
    .game-viewport__canvas,
.game-app_legacy:not(.game-app_tv) .game-viewport__canvas {
    display: block;
    aspect-ratio: auto;
    flex: none;
}

.game-app_legacy:not(.game-app_touch):not(.game-app_tv) .game-viewport__canvas,
.game-app_legacy-landscape:not(.game-app_tv) .game-viewport__canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.game-app_tv .game-viewport,
.game-app_tv .game-viewport__display {
    display: flex;
    flex: 1 1 0%;
    min-height: 0;
    flex-direction: column;
}

.game-app_tv .game-viewport__canvas {
    position: static;
    flex: 1 1 0%;
    min-height: 0;
    height: 0;
    width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    transform: none;
}

.game-app_tv .game-viewport__split-divider:focus {
    outline: 3px solid #a4f5db;
    outline-offset: 3px;
}

.platform-picker {
    width: 100%;
    max-width: 1360px;
    margin: auto;
    padding: 36px 16px 56px;
}

.platform-picker[hidden] {
    display: none;
}

.platform-picker__header {
    position: relative;
    isolation: isolate;
    margin-bottom: 40px;
    text-align: center;
}

.platform-picker__stars {
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: calc(100% + 24px);
    image-rendering: pixelated;
    pointer-events: none;
}

.platform-picker__flyby {
    position: absolute;
    top: -12px;
    right: 0;
    bottom: -12px;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.platform-picker__ship-flight {
    position: absolute;
    left: -80px;
    width: calc(100% + 80px);
    height: 12px;
    visibility: hidden;
}

.platform-picker__ship-flight_active {
    visibility: visible;
    animation: platform-ship-flight 10s linear both;
}

.platform-picker__ship {
    display: block;
    width: 80px;
    height: 12px;
    image-rendering: pixelated;
}

.platform-picker__ship-exhaust {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 12px;
    image-rendering: pixelated;
}

.platform-picker__ship-engine-light {
    position: absolute;
    top: 4px;
    left: 47px;
    width: 13px;
    height: 4px;
    background: linear-gradient(to right, #b5ecff, #fff2b0);
    box-shadow: 0 0 5px 2px #ffe5a8;
}

.platform-picker__ship-flight_active .platform-picker__ship-engine-light {
    animation: platform-ship-exhaust 2.4s ease-in-out infinite;
}

.platform-picker__ship-flight_active .platform-picker__ship-exhaust {
    animation: platform-ship-trail 2.4s ease-in-out infinite;
}

.platform-picker__ship-beacon {
    position: absolute;
    top: 0;
    left: 64px;
    width: 3px;
    height: 2px;
    background: #ff4238;
    box-shadow: 0 0 4px 1px #ff3028;
    opacity: 0;
}

.platform-picker__ship-flight_active .platform-picker__ship-beacon {
    animation: platform-ship-beacon 1s step-end infinite;
}

@keyframes platform-ship-beacon {
    0% {
        opacity: 1;
    }
    20%,
    100% {
        opacity: 0;
    }
}

@keyframes platform-ship-trail {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes platform-ship-exhaust {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.15;
    }
}

@keyframes platform-ship-flight {
    from {
        transform: translateX(0);
    }
    90% {
        transform: translateX(75%);
        animation-timing-function: cubic-bezier(0.5, 0.166667, 0.8, 0.6);
    }
    to {
        transform: translateX(100%);
    }
}

.platform-picker__heading {
    position: relative;
    display: inline-block;
    margin: 0 0 10px;
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 8px;
    color: #e8d6a6;
    mix-blend-mode: difference;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .platform-picker__heading {
        background-image: linear-gradient(
            110deg,
            #e8d6a6 0%,
            #e8d6a6 42%,
            #fff5d6 47%,
            #ffffff 50%,
            #fff5d6 53%,
            #e8d6a6 58%,
            #e8d6a6 100%
        );
        background-size: 300% 100%;
        background-position: 100% 0;
        background-repeat: no-repeat;
        -webkit-background-clip: text;
                background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        animation: platform-title-shine 6s ease-in-out infinite;
    }
}

@keyframes platform-title-shine {
    0%,
    20% {
        background-position: 100% 0;
    }
    65%,
    100% {
        background-position: 0% 0;
    }
}

.platform-picker__heading_raster {
    background-image: none;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: none;
}

.platform-picker_static .platform-picker__heading {
    background-image: none;
    color: #e8d6a6;
    -webkit-text-fill-color: #e8d6a6;
    animation: none;
}

.platform-picker__title-raster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    pointer-events: none;
}

.platform-picker__title-baseline {
    display: inline-block;
    width: 0;
    height: 0;
}

.platform-picker__description {
    position: relative;
    margin: 0;
    font-size: 13px;
    letter-spacing: 2px;
    color: #9eb5c5;
}

.platform-picker__banners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: -10px;
}

.platform-picker__banner {
    position: relative;
    display: block;
    flex: 0 0 calc(25% - 20px);
    min-width: 0;
    margin: 10px;
    border: 1px solid #536a7b;
    border-radius: 8px;
    background: #0c1520;
    color: #eaf1f0;
    text-decoration: none;
    box-shadow: 0 8px 20px #0004;
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
    transform-origin: center;
}

.platform-picker__banner:not([aria-disabled='true']):focus {
    z-index: 1;
    transform: scale(1.05);
    box-shadow: 0 24px 44px #0009;
    outline: 3px solid #a4f5db;
    outline-offset: 4px;
}

@media (hover: hover) {
    .platform-picker__banner:not([aria-disabled='true']):hover {
        z-index: 1;
        transform: scale(1.05);
        box-shadow: 0 24px 44px #0009;
        border-color: #b5deef;
    }
}

.platform-picker__banner[aria-disabled='true'] {
    cursor: progress;
}

.platform-picker__banner.platform-picker__banner_disabled {
    -webkit-filter: grayscale(1);
            filter: grayscale(1);
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    outline: none;
    transition: none;
}

.platform-picker__artwork {
    position: relative;
    display: block;
    padding-top: 75%;
    background: #000;
    border-radius: 7px 7px 0 0;
    overflow: hidden;
}

.platform-picker__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.platform-picker__banner_remastered .platform-picker__image,
.platform-picker__banner_vr .platform-picker__image {
    image-rendering: auto;
}

.platform-picker__name {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 17px 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border-top: inherit;
}

.platform-picker__mark {
    display: block;
    flex: 0 0 28px;
    height: 16px;
    margin-right: 8px;
    border-radius: 1px;
    background: #edcc73;
}

.platform-picker__banner_retro .platform-picker__mark {
    background: linear-gradient(
        115deg,
        #ec363a 0%,
        #ec363a 25%,
        #f6d947 25%,
        #f6d947 50%,
        #48bc67 50%,
        #48bc67 75%,
        #45c5e4 75%,
        #45c5e4 100%
    );
}

.platform-picker__banner_c64 .platform-picker__mark {
    background: linear-gradient(
        to bottom,
        #d85b50 0%,
        #d85b50 14%,
        #e59b48 14%,
        #e59b48 28%,
        #dfd46f 28%,
        #dfd46f 42%,
        #79af72 42%,
        #79af72 57%,
        #6cb5c4 57%,
        #6cb5c4 71%,
        #7373b6 71%,
        #7373b6 85%,
        #a28ac0 85%,
        #a28ac0 100%
    );
}

.platform-picker__banner_cpc .platform-picker__mark {
    background: linear-gradient(
        to bottom,
        #e8494e 0%,
        #e8494e 33.333%,
        #41b368 33.333%,
        #41b368 66.667%,
        #4d8ee0 66.667%,
        #4d8ee0 100%
    );
}

.platform-picker__banner_sharp-mz800 .platform-picker__mark {
    background: linear-gradient(
        to bottom,
        #e83b41 0%,
        #e83b41 40%,
        #f4f4f4 40%,
        #f4f4f4 60%,
        #e83b41 60%,
        #e83b41 100%
    );
}

.platform-picker__banner_remastered .platform-picker__mark {
    background: linear-gradient(
        115deg,
        #ba873c 0%,
        #f3d894 40%,
        #e8bb61 58%,
        #0c1520 58%,
        #0c1520 67%,
        #70c8c2 67%,
        #a4f5db 100%
    );
}

.platform-picker__status {
    min-height: 20px;
    margin: 32px 0 0;
    text-align: center;
    font-size: 12px;
    color: #a7bdc9;
}

.game-app_selecting {
    display: flex;
    align-items: center;
    min-height: 100vh;
    height: auto;
    max-width: 1448px;
    overflow: visible;
}

.game-app_selecting.game-app_fullscreen {
    max-width: none;
}

.game-app_selecting > .game-viewport,
.game-app_selecting > .game-footer {
    display: none;
}

@media (min-width: 1101px) {
    .game-app.game-app_selecting {
        height: 100vh;
        min-height: 0;
        padding: 12px 24px;
    }
    .platform-picker {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 1000px;
        min-height: 0;
        padding: 12px 16px;
    }
    .platform-picker__header {
        flex: 0 0 auto;
        margin-bottom: 24px;
    }
    .platform-picker__banners {
        flex: 1 1 0%;
        min-height: 0;
        align-content: stretch;
    }
    .platform-picker__banner {
        display: flex;
        flex-direction: column;
        height: calc(50% - 20px);
    }
    .platform-picker__artwork {
        flex: 1 1 auto;
        min-height: 0;
        padding-top: 0;
    }
    .platform-picker__name {
        flex: 0 0 auto;
    }
    .platform-picker__status {
        flex: 0 0 auto;
        margin-top: 16px;
    }
}

@media (min-width: 1101px) and (max-height: 600px) {
    .platform-picker__header {
        margin-bottom: 12px;
    }
    .platform-picker__heading {
        margin-bottom: 6px;
        font-size: 28px;
    }
    .platform-picker__description {
        font-size: 11px;
    }
    .platform-picker__name {
        padding: 8px 6px;
        font-size: 12px;
    }
    .platform-picker__status {
        min-height: 16px;
        margin-top: 8px;
        font-size: 11px;
    }
}

@media (max-width: 760px) {
    .platform-picker {
        padding: 20px 8px 36px;
    }
    .platform-picker__header {
        margin-bottom: 20px;
    }
    .platform-picker__heading {
        font-size: 36px;
    }
    .platform-picker__banner {
        flex-basis: calc(50% - 20px);
    }
    .platform-picker__name {
        padding: 12px 4px;
        font-size: 12px;
    }
    .platform-picker__mark {
        flex-basis: 20px;
        height: 14px;
        margin-right: 6px;
    }
}

@media (max-width: 1100px) and (max-height: 450px) and (orientation: landscape) {
    .platform-picker {
        padding: 12px 8px 28px;
    }
    .platform-picker__header {
        margin-bottom: 12px;
    }
    .platform-picker__heading {
        font-size: 28px;
    }
    .platform-picker__description {
        font-size: 11px;
    }
    .platform-picker__banner {
        flex-basis: calc(25% - 16px);
        margin: 8px;
    }
    .platform-picker__banners {
        margin: -8px;
    }
    .platform-picker__name {
        font-size: 10px;
        padding: 10px 2px;
    }
    .platform-picker__status {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .platform-picker__heading {
        font-size: 24px;
        letter-spacing: 3px;
    }
}

@media (max-width: 360px) {
    .platform-picker__heading {
        font-size: 20px;
        letter-spacing: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .platform-picker__flyby {
        display: none;
    }
    .platform-picker__ship-flight {
        animation: none;
    }
    .platform-picker__banner {
        transition: none;
    }
    .platform-picker__heading {
        animation: none;
        background-position: 100% 0;
    }
    .platform-picker__banner:not([aria-disabled='true']):focus,
    .platform-picker__banner:not([aria-disabled='true']):hover {
        transform: none;
    }
}

.platform-picker__banner_amiga .platform-picker__mark {
    background: repeating-linear-gradient(135deg, #ef453b 0 7px, #fff5e5 7px 14px);
}

.platform-picker__banner_atari-st .platform-picker__mark {
    background: repeating-linear-gradient(90deg, #e44432 0 4px, #0c1520 4px 7px);
}

.platform-picker__banner_vr .platform-picker__mark {
    background: linear-gradient(115deg, #64d6d1, #f3d894);
    border-radius: 6px;
}

.notifications {
    flex-basis: 100%;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #4e8176;
    border-radius: 4px;
    background: #142e2a;
    color: #c9f6e6;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.notifications[hidden] {
    display: none;
}

.select {
    font: inherit;
    min-height: 32px;
    max-width: 100%;
    padding: 4px 7px;
    border: 1px solid #536c77;
    border-radius: 5px;
    background: #101f2b;
    color: #e6ebe9;
    color-scheme: dark;
}

.select:focus-visible {
    outline: 2px solid #a4f5db;
    outline-offset: 3px;
}

.game-app_tv .select:focus {
    outline: 3px solid #a4f5db;
    outline-offset: 3px;
}

.platform-select {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #b7cbcc;
    min-width: 0;
}

.game-app_touch .platform-select__control {
    min-height: 44px;
    font-size: 14px;
}

.game-app_tv .platform-select {
    font-size: 16px;
}

.game-app_tv .platform-select__control {
    min-height: 44px;
    font-size: 16px;
    padding: 6px;
}

.platform-select__status {
    flex-basis: 100%;
    max-width: 280px;
    color: #ffc779;
    line-height: 1.5;
}

.platform-select__status[hidden] {
    display: none;
}

.settings-panel .platform-select,
.settings-panel .platform-select__control {
    font-size: inherit;
}

.input {
    font: inherit;
}

.input:not([type='range']) {
    font-size: 16px;
}

.input:disabled {
    cursor: not-allowed;
}

.game-app_tv .input:focus {
    outline: 3px solid #a4f5db;
    outline-offset: 3px;
}

.checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #95cfbc;
}

.game-app_tv .checkbox:focus {
    outline: 3px solid #a4f5db;
    outline-offset: 3px;
}

.settings-group {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    border: 1px solid #33434d;
    border-radius: 6px;
}

.settings-group + .settings-group {
    margin-left: 12px;
}

.settings-group_end {
    margin-left: auto;
}

.settings-group__legend {
    max-width: 100%;
    padding: 0 6px;
    color: #e6ebe9;
    font-size: inherit;
    font-weight: 600;
    line-height: 1.4;
}

.settings-group__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 650px) {
    .settings-group {
        flex: 0 0 auto;
        width: 100%;
    }
    .settings-group + .settings-group {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (orientation: landscape) {
    .game-app_touch .settings-group {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }
    .game-app_touch .settings-group + .settings-group {
        margin-left: 12px;
        margin-top: 0;
    }
    .game-app_touch .settings-group__body {
        flex-wrap: nowrap;
    }
}

.game-app_legacy .settings-group {
    margin-right: 12px;
}

.game-app_legacy .settings-group:last-child {
    margin-right: 0;
}

.game-app_legacy .settings-group__body {
    gap: 0;
}

.game-app_legacy .settings-group__body > * {
    margin: 3px;
}

.game-app_legacy-landscape .settings-group {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

.game-app_legacy-landscape .settings-group + .settings-group {
    margin-left: 12px;
    margin-top: 0;
}

.game-app_legacy-landscape .settings-group__body {
    flex-wrap: nowrap;
}

.game-app_tv .settings-group {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
}

.game-app_tv .settings-group__body {
    flex-wrap: wrap;
}

.settings-panel .settings-group {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
}

.settings-panel .settings-group + .settings-group {
    margin-left: 0;
    margin-top: 12px;
}

.settings-panel .settings-group__body {
    flex-wrap: wrap;
}

.sound-controls,
.sound-controls__sound-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.sound-controls__sound-actions {
    flex-shrink: 0;
}

.sound-controls__volume {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #91a4b3;
    font-size: 9px;
}

.sound-controls__slider {
    width: 60px;
    accent-color: #95cfbc;
}

.sound-controls__sound {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.sound-controls__icon {
    display: block;
    width: 18px;
    height: 18px;
}

.sound-controls__muted,
.sound-controls__sound[aria-pressed='true'] .sound-controls__waves {
    display: none;
}

.sound-controls__sound[aria-pressed='true'] .sound-controls__muted {
    display: block;
}

@media (pointer: coarse) {
    .sound-controls__sound {
        width: 44px;
        height: 44px;
    }
}

.game-app_touch .sound-controls__sound,
.game-app_tv .sound-controls__sound {
    width: 44px;
    height: 44px;
}

.game-app_touch .sound-controls__slider,
.game-app_tv .sound-controls__slider {
    height: 44px;
}

.game-app_tv .sound-controls__volume {
    font-size: 16px;
}

.game-app_tv .sound-controls__slider {
    width: 90px;
}

.game-app_legacy .sound-controls,
.game-app_legacy .sound-controls__sound-actions {
    gap: 0;
}

.game-app_legacy .sound-controls > * + *,
.game-app_legacy .sound-controls__sound-actions > * + * {
    margin-left: 7px;
}

.settings-panel .sound-controls__volume {
    font-size: inherit;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #000b;
    font-size: 16px;
}

.modal[hidden] {
    display: none;
}

@media (max-width: 360px) {
    .modal {
        padding: 12px;
    }
}

.game-app_legacy .modal {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.game-app_tv .modal {
    font-size: 18px;
    font-size: clamp(18px, 1.2vw, 26px);
}

.modal-card {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    width: 720px;
    max-width: 100%;
    min-height: 0;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    border: 1px solid #536c77;
    border-radius: 8px;
    background: #0b121c;
    box-shadow: 0 20px 60px #0008;
}

.modal-card_compact {
    width: 440px;
}

.modal-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    padding: 12px 16px 12px 20px;
    border-bottom: 1px solid #33434d;
}

.modal-card__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
    color: #e6ebe9;
}

.modal-card .modal-card__close.button {
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    margin-left: 16px;
    padding: 0;
    border: 0;
    font-size: 28px;
    line-height: 1;
}

.modal-card__close.button:focus {
    outline: 0;
    background: #20313c;
    color: #e6ebe9;
}

.modal-card__content {
    flex: 0 1 auto;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px;
    touch-action: pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 12px 16px;
    border-top: 1px solid #33434d;
}

.modal-card__footer > * {
    margin: 4px;
}

@media (max-width: 650px) {
    .modal-card__header {
        padding: 8px 12px 8px 16px;
    }
    .modal-card__content {
        padding: 16px;
    }
    .modal-card__footer {
        padding: 8px 12px;
    }
}

@media (max-width: 360px) {
    .modal-card {
        max-height: calc(100vh - 24px);
    }
}

.game-app_touch .modal-card__header {
    padding: 4px 12px 4px 16px;
}

.game-app_touch .modal-card__footer {
    padding: 4px 12px;
}

.game-app_tv .modal-card_compact {
    width: 640px;
}

.settings-panel__card {
    max-height: 95vh;
    max-height: 95dvh;
}

.settings-panel__fps-choice {
    display: flex;
    align-items: center;
}

.settings-panel__fps-checkbox {
    margin-right: 8px;
}

.home-panel {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 52px 12px 12px;
    padding-top: calc(max(12px, env(safe-area-inset-top)) + 40px);
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    background: transparent;
}

.home-panel__content {
    max-width: 100%;
    min-width: 0;
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #536c77;
    border-radius: 6px;
    background: #0b121c;
    box-shadow: 0 4px 16px #0008;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.game-app_touch .home-panel,
.game-app_tv .home-panel {
    padding-top: 64px;
    padding-top: calc(max(12px, env(safe-area-inset-top)) + 52px);
}

@media (pointer: coarse) {
    .home-panel {
        padding-top: 64px;
        padding-top: calc(max(12px, env(safe-area-inset-top)) + 52px);
    }
}

.game-footer__overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: static;
    inset: auto;
    padding: 20px;
    background: #0b121c;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
}

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

.game-footer__overlay-text {
    font-size: 13px;
    color: #b8c5c7;
    line-height: 1.8;
    max-width: 440px;
    margin: 0 0 25px;
}

@media (max-width: 650px) {
    .game-footer__overlay-text {
        font-size: 10px;
        margin-bottom: 16px;
    }
}

.game-footer__overlay-title {
    font-size: clamp(23px, 3.5vw, 44px);
    letter-spacing: -1.5px;
    margin: 17px 0 12px;
    font-weight: 600;
}

@media (max-width: 650px) {
    .game-footer__overlay-title {
        margin: 10px 0;
    }
}

.game-footer {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 10px;
    border: 1px solid #242424;
    border-top: 0;
    border-radius: 0 0 9px 9px;
    background: #0b121c;
}

@media (max-width: 650px) {
    .game-footer__overlay {
        padding: 12px;
    }
}

.game-app_fullscreen .game-footer {
    flex-shrink: 0;
    max-height: 65vh;
    max-height: 65dvh;
    overflow: auto;
    border-radius: 0;
}

.game-footer__name-entry {
    position: fixed;
    left: 0;
    top: 0;
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    -webkit-clip-path: inset(50%);
            clip-path: inset(50%);
    white-space: nowrap;
    margin: 0;
    padding: 0;
    border: 0;
}

.game-footer__name-entry[hidden] {
    display: none;
}

.game-app_fullscreen .game-footer__overlay {
    flex-shrink: 0;
    justify-content: flex-start;
}

.game-footer__overlay-title:empty,
.game-footer__overlay-copy:empty {
    display: none;
}

.game-footer .game-footer__overlay {
    display: contents;
}

.game-footer .game-footer__overlay[hidden] {
    display: none;
}

.game-footer .game-footer__overlay-title,
.game-footer .game-footer__overlay-text {
    margin: 0;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: normal;
}

.game-footer__split-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
}

.game-footer__split-options[hidden] {
    display: none;
}

.game-footer__graphics-choice {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #b7cbcc;
    min-width: 0;
}

.game-footer__options {
    display: contents;
}

.game-app_touch .game-footer__options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    flex-basis: 100%;
}

.game-app_touch .game-footer {
    padding: 8px;
}

.game-app_touch .game-footer__graphics-select {
    min-height: 44px;
    font-size: 14px;
}

@media (orientation: portrait) {
    .game-app_touch:not(.game-app_tv) .game-footer {
        flex-shrink: 0;
        margin-top: 24px;
        margin-bottom: auto;
    }
    .game-app_touch .game-footer__options {
        max-height: 360px;
        max-height: clamp(
            96px,
            calc(100svh - 75vw - 160px - env(safe-area-inset-top) - env(safe-area-inset-bottom)),
            360px
        );
        overflow: auto;
        touch-action: pan-y;
        scrollbar-width: thin;
        overscroll-behavior: contain;
    }
}

@media (orientation: landscape) {
    .game-app_touch .game-footer {
        flex-shrink: 0;
        min-height: 0;
        padding: 6px 8px;
        gap: 6px;
        max-height: none;
        overflow: visible;
    }
    .game-app_touch .game-footer__options {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        touch-action: pan-x;
        scrollbar-width: thin;
        overscroll-behavior-x: contain;
    }
    .game-app_touch:not(.game-app_tv) .game-footer__options > *,
    .game-app_touch:not(.game-app_tv) .game-footer__options .button {
        flex-shrink: 0;
    }
    .game-app_touch .game-footer__options .game-footer__split-options {
        flex-wrap: nowrap;
        max-width: none;
    }
}

.game-app_legacy .game-footer__options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    overflow: auto;
    width: 100%;
    gap: 0;
}

.game-app_legacy .game-footer {
    gap: 0;
    padding: 4px;
}

.game-app_legacy .game-footer__overlay {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 0;
    background: none;
    border: 0;
}

.game-app_legacy .game-footer__split-options {
    max-width: 100%;
}

.game-app_legacy .game-footer__graphics-choice {
    margin-right: 6px;
}

.game-app_legacy-landscape .game-footer__options {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.game-app_legacy-landscape:not(.game-app_tv) .game-footer__options > * {
    flex-shrink: 0;
}

.game-app_legacy-landscape .game-footer {
    flex-shrink: 0;
}

.game-app_tv .game-footer {
    flex: 0 0 auto;
    min-height: 0;
    max-height: 40vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px;
}

.game-app_tv .game-footer__options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    overflow: visible;
    white-space: normal;
}

.game-app_tv .game-footer .game-footer__split-options {
    flex-wrap: wrap;
    max-width: 100%;
}

.game-app_tv .game-footer__graphics-choice {
    font-size: 16px;
}

.game-app_tv .game-footer__graphics-select {
    min-height: 44px;
    font-size: 16px;
    padding: 6px;
}

.game-footer__options.game-footer__options_amiga {
    flex-wrap: wrap;
    white-space: normal;
}

.game-footer.game-footer_settings-modal {
    padding: 0;
    border: 0;
    background: transparent;
}

.settings-panel .game-footer__graphics-choice,
.settings-panel .game-footer__graphics-select {
    font-size: inherit;
}

.tv-help {
    display: none;
}

.game-app_tv .tv-help {
    display: block;
    flex-basis: 100%;
    margin: 0;
    color: #a2b8c5;
    font-size: 14px;
    line-height: 1.4;
}

.high-scores {
    --score-row-height: 24px;
    max-width: 380px;
    background: #02060be0;
    border-radius: 6px;
    text-align: left;
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    -webkit-clip-path: inset(50%);
            clip-path: inset(50%);
    white-space: nowrap;
    padding: 0;
    margin: -1px;
    border: 0;
}

.high-scores__heading {
    margin: 0 0 14px;
    text-align: center;
    font:
        700 22px ui-monospace,
        monospace;
    letter-spacing: 2px;
    color: #fff568;
}

.high-scores__summary {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 14px;
    font:
        9px ui-monospace,
        monospace;
    color: #b1c8cb;
}

.high-scores__score {
    color: #fff568;
    font-weight: 500;
}

.high-scores__columns {
    display: flex;
    justify-content: space-between;
    font:
        9px ui-monospace,
        monospace;
    letter-spacing: 2px;
    color: #8cafa3;
    margin-bottom: 7px;
}

.high-scores__window {
    height: calc(var(--score-row-height) * 6);
    overflow: hidden;
}

.high-scores__window:focus-visible {
    outline: 1px solid #a4f5db;
    outline-offset: 3px;
}

.high-scores__list {
    list-style: none;
    padding: 0;
    margin: 0;
    will-change: transform;
}

@media (max-width: 650px) {
    .high-scores {
        --score-row-height: 15px;
    }
    .high-scores__heading {
        font-size: 13px;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }
    .high-scores__summary {
        font-size: 6px;
        gap: 4px;
        flex-wrap: wrap;
        margin-bottom: 7px;
    }
    .high-scores__columns {
        font-size: 6px;
        letter-spacing: 1px;
        margin-bottom: 3px;
    }
}

@media (max-width: 360px) {
    .high-scores {
        --score-row-height: 12px;
    }
    .high-scores__heading {
        font-size: 11px;
        margin-bottom: 6px;
    }
}

.high-scores[hidden] {
    display: none;
}

.title-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: static;
    inset: auto;
    padding: 20px;
    background: #0b121c;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
}

.title-menu[hidden] {
    display: none;
}

.title-menu__intro,
.title-menu__eyebrow {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    -webkit-clip-path: inset(50%);
            clip-path: inset(50%);
    white-space: nowrap;
    padding: 0;
    margin: -1px;
    border: 0;
}

.title-menu_scores .title-menu__music-status,
.title-menu_scores .title-menu__controls {
    display: none;
}

.title-menu__action[hidden] {
    display: none;
}

.title-menu__heading {
    font-size: clamp(48px, 9vw, 116px);
    font-weight: 950;
    font-style: italic;
    letter-spacing: 8px;
    line-height: 1;
    margin: 24px 0 13px;
    color: #fff568;
    text-shadow:
        0 3px #958012,
        0 7px 30px #ffc21a44;
    transform: skew(-5deg);
}

.title-menu__tagline {
    font:
        10px ui-monospace,
        monospace;
    letter-spacing: 3px;
    color: #b2c8c9;
    margin: 0 0 32px;
}

.title-menu__campaign {
    font:
        9px ui-monospace,
        monospace;
    letter-spacing: 1px;
    color: #d7c2a3;
    margin: 0 0 26px;
}

.title-menu__separator {
    padding: 0 8px;
    color: #6d8e95;
}

.title-menu__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.title-menu__music-status {
    font-size: 10px;
    color: #99b4ba;
    min-height: 14px;
    margin: 14px 0 24px;
}

.title-menu__controls {
    font-size: 10px;
    line-height: 1.9;
    color: #91a5af;
    margin: 0;
}

@media (max-width: 650px) {
    .title-menu__heading {
        font-size: 47px;
        letter-spacing: 5px;
        margin: 16px 0 10px;
    }
    .title-menu__tagline {
        font-size: 6px;
        letter-spacing: 1px;
        margin-bottom: 17px;
    }
    .title-menu__campaign {
        font-size: 6px;
        letter-spacing: 0.2px;
        margin-bottom: 16px;
    }
    .title-menu__separator {
        padding: 0 3px;
    }
    .title-menu__actions {
        gap: 7px;
    }
    .title-menu__music-status {
        font-size: 8px;
        margin: 9px 0 0;
    }
    .title-menu__controls {
        display: none;
    }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .title-menu__heading {
        background: linear-gradient(#fff 0%, #fff 26%, #fff62b 32%, #ffdf00 74%, #b6a500 100%);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        text-shadow: 0 7px 30px #ffc21a33;
    }
}

@media (max-width: 650px) {
    .title-menu .title-menu__music-status {
        margin-top: 6px;
    }
    .title-menu__heading {
        margin-top: 10px;
        margin-bottom: 8px;
    }
    .title-menu__tagline {
        margin-bottom: 12px;
    }
    .title-menu__campaign {
        margin-bottom: 12px;
    }
}

@media (max-width: 360px) {
    .title-menu__heading {
        font-size: 38px;
        margin: 8px 0;
    }
    .title-menu .title-menu__tagline {
        display: none;
    }
}

.title-menu__intro[hidden] {
    display: none;
}

@media (max-width: 650px) {
    .title-menu {
        padding: 12px;
    }
}

.game-app_fullscreen .title-menu {
    flex-shrink: 0;
}

.game-footer .title-menu,
.game-footer .title-menu__actions {
    display: contents;
}

.game-footer .title-menu[hidden] {
    display: none;
}

.game-footer .title-menu__music-status {
    margin: 0;
    min-height: 0;
    font-size: 9px;
    overflow-wrap: anywhere;
}

.game-footer .title-menu__controls {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    -webkit-clip-path: inset(50%);
            clip-path: inset(50%);
    white-space: nowrap;
    margin: -1px;
    padding: 0;
    border: 0;
}

.title-menu__music-status:empty {
    display: none;
}

.home-panel .title-menu__music-status {
    font-size: inherit;
}

.game-app_legacy .title-menu,
.game-app_legacy .title-menu__actions {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 0;
    background: none;
    border: 0;
}

.game-app_legacy .title-menu__actions > * {
    margin: 3px;
}

.game-app_legacy .title-menu__controls {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.home-panel .title-menu,
.home-panel .title-menu__actions {
    flex-shrink: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.pause-button[aria-pressed='true'] {
    background: #e7ebde;
    color: #13222a;
    border-color: #e7ebde;
}

.pause-button[aria-pressed='true']:hover {
    background: #fff;
    border-color: #fff;
}

.pause-button_amiga[aria-pressed='true'],
.pause-button_amiga[aria-pressed='true']:hover {
    border-color: #a4f5db;
    box-shadow: 0 0 0 2px #a4f5db;
}

.toolbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.toolbar__actions {
    display: contents;
}

.toolbar > * {
    flex-shrink: 0;
}

.toolbar__status {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    margin: -1px;
    padding: 0;
    border: 0;
}

.game-app_legacy .toolbar,
.game-app_legacy .toolbar__actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    min-width: 0;
}

.game-app_legacy .toolbar > *,
.game-app_legacy .toolbar__actions > * {
    margin: 3px;
}

.touch-controls {
    display: none;
    flex: 0 0 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 4px 12px;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.touch-controls__stick {
    position: relative;
    flex: 0 0 144px;
    width: 144px;
    height: 144px;
    border: 1px solid #415865;
    border-radius: 50%;
    background: radial-gradient(circle, #243c49 0%, #15232e 70%);
    touch-action: none;
}

.touch-controls .touch-controls__button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: #b8d9de;
    font-size: 25px;
    touch-action: none;
}

.touch-controls__stick,
.touch-controls__button,
.touch-controls__label {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.touch-controls .touch-controls__button_up {
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -24px;
}

.touch-controls .touch-controls__button_down {
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -24px;
}

.touch-controls .touch-controls__button_left {
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -24px;
}

.touch-controls .touch-controls__button_right {
    position: absolute;
    top: 50%;
    right: 0;
    margin-top: -24px;
}

.touch-controls__thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border: 1px solid #7db6bb;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #578589, #294b56);
    box-shadow:
        0 3px 10px #0006,
        inset 0 1px 2px #b6ffe044;
    pointer-events: none;
}

.touch-controls__actions {
    display: flex;
    flex: 1 1 0%;
    align-self: flex-start;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    max-width: 192px;
    gap: 8px;
    margin-top: 8px;
}

.touch-controls .touch-controls__button_fire,
.touch-controls .touch-controls__button_rocket {
    flex: 1 1 0%;
    flex-direction: column;
    min-width: 0;
    min-height: 76px;
    max-width: 88px;
    height: 88px;
    border-color: #8d785f;
    background: #332b24;
    color: #eed6b1;
}

.touch-controls .touch-controls__button_rocket {
    border-color: #815f57;
    background: #332623;
    color: #f0b9a7;
}

.touch-controls__icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.touch-controls__label {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.touch-controls .touch-controls__button_held {
    border-color: #b6ffe0;
    background: #356659;
    color: #fff;
    box-shadow: inset 0 0 0 1px #b6ffe066;
}

.touch-controls .touch-controls__button:focus-visible {
    outline: 2px solid #a4f5db;
    outline-offset: 1px;
}

.game-app_fullscreen .touch-controls {
    flex-shrink: 0;
}

.game-app_touch .touch-controls {
    display: flex;
}

@media (orientation: landscape) {
    .game-app_touch .touch-controls {
        position: fixed;
        z-index: 5;
        left: 8px;
        left: max(8px, env(safe-area-inset-left));
        right: 8px;
        right: max(8px, env(safe-area-inset-right));
        bottom: 64px;
        bottom: calc(64px + env(safe-area-inset-bottom));
        flex-wrap: nowrap;
        width: auto;
        margin: 0;
        padding: 0;
        pointer-events: none;
    }
    .game-app_touch .touch-controls__stick,
    .game-app_touch .touch-controls__actions {
        pointer-events: auto;
    }
    .touch-controls__stick {
        flex-basis: 112px;
        width: 112px;
        height: 112px;
    }
    .touch-controls__thumb {
        width: 34px;
        height: 34px;
        margin: -17px 0 0 -17px;
    }
    .touch-controls .touch-controls__button_fire,
    .touch-controls .touch-controls__button_rocket {
        min-height: 64px;
        height: 72px;
        max-width: 80px;
    }
}

.game-app_legacy .touch-controls {
    gap: 0;
}

.game-app_legacy .touch-controls__actions {
    margin-left: 12px;
}

.game-app_legacy .touch-controls__button_rocket {
    margin-left: 8px;
}

.game-app_tv .touch-controls {
    display: none;
}

.cheat-settings {
    width: 100%;
    white-space: normal;
}

.cheat-settings__content {
    display: flex;
    flex-direction: column;
}

.cheat-settings__description {
    margin: 0;
    color: #99b4ba;
    line-height: 1.5;
}

.cheat-settings__options {
    display: flex;
    flex-wrap: wrap;
    margin: 8px -8px -8px;
}

.cheat-settings__option {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 180px;
    margin: 8px;
    line-height: 1.5;
    cursor: pointer;
}

.game-app_touch .cheat-settings__option,
.game-app_tv .cheat-settings__option {
    min-height: 44px;
}

.game-app_legacy .cheat-settings__checkbox {
    margin-right: 10px;
}

.gamepad-hint {
    position: fixed;
    left: 50%;
    bottom: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 1050;
    display: flex;
    align-items: center;
    width: calc(100% - 24px);
    max-width: 480px;
    padding: 10px 12px;
    border: 1px solid #4e8176;
    border-radius: 10px;
    background: #112b29;
    color: #d7f4e9;
    box-shadow: 0 8px 28px #0008;
    font-size: 14px;
    line-height: 1.4;
    transform: translateX(-50%);
    opacity: 1;
    animation: gamepad-hint-enter 240ms ease-out;
    transition: opacity 200ms ease-out;
    pointer-events: none;
}

.gamepad-hint_dismissing {
    opacity: 0;
    animation: none;
}

@keyframes gamepad-hint-enter {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%);
        opacity: 1;
    }
}

.gamepad-hint[hidden] {
    display: none;
}

.gamepad-hint__icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin-right: 12px;
    color: #a4f5db;
}

.gamepad-hint__message {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.gamepad-hint__dismiss {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-left: 8px;
    padding: 0;
    border: 0;
    color: #d7f4e9;
    pointer-events: auto;
}

.gamepad-hint__close-icon {
    width: 16px;
    height: 16px;
}

.game-app_tv .gamepad-hint {
    max-width: 620px;
    font-size: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .gamepad-hint {
        animation: none;
        transition: none;
    }
}

.native-game__menu {
    display: flex;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 8px;
}

.game-app_legacy .native-game__menu > * {
    margin: 3px;
}

.game-app_native .game-viewport__display {
    aspect-ratio: 8 / 5;
}

.game-app_native:not(.game-app_touch) .game-viewport__display {
    aspect-ratio: auto;
}

/* Preserve the native ratio above fullscreen, touch and TV viewport defaults. */

.game-app_native .game-viewport__display .native-game__canvas {
    aspect-ratio: 8 / 5;
    object-fit: contain;
}

.native-game__name-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    border: 0;
    padding: 0;
}

.game-app_native .native-game__canvas[data-menu='name'] {
    outline: 2px solid #a4f5db;
}

.vr-game {
    max-width: 1440px;
    padding: 24px;
}

.vr-game__viewport {
    position: relative;
    width: 100%;
    min-height: 240px;
    border: 1px solid #263d4c;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #050b16;
}

.vr-game__canvas {
    display: block;
    width: 100%;
    height: min(70vh, 820px);
    min-height: 240px;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.vr-game:not(.game-app_touch) .vr-game__viewport {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.vr-game:not(.game-app_touch) .vr-game__canvas {
    flex: 1;
    height: 0;
    min-height: 0;
}

.vr-game__entry {
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
    justify-content: center;
    min-width: 0;
    padding: 8px 0 12px;
}

.vr-game .vr-game__enter-button {
    width: 360px;
    max-width: 100%;
    min-height: 76px;
    margin: 0 auto;
    padding: 20px 40px;
    border: 2px solid #95e8d3;
    border-radius: 12px;
    background: #a4f5db;
    color: #102c2a;
    box-shadow: 0 6px 24px #53dfed26;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
}

.vr-game__enter-button:hover:not(:disabled) {
    background: #d3fff0;
}

.vr-game__view-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.vr-game__scale-label {
    font-size: inherit;
    color: #b6cdcf;
}

.vr-game__scale {
    width: 90px;
    accent-color: #a4f5db;
}

.vr-game__status,
.vr-game__help {
    flex-basis: 100%;
    margin: 2px 0;
    color: #9bb9c6;
    font-size: 12px;
    line-height: 1.5;
}

.vr-game__help {
    color: #748d9e;
    font-size: 11px;
}

.vr-game__name-entry {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(480px, 90%);
    padding: 16px;
    border: 1px solid #78b9ab;
    border-radius: 8px;
    background: #091725;
}

.vr-game__name-entry[hidden] {
    display: none;
}

.vr-game__name-label {
    font-size: 13px;
    color: #e7d4a8;
}

.vr-game__name-input {
    width: 150px;
}

.game-app_fullscreen.vr-game {
    max-width: none;
}

.game-app_fullscreen .vr-game__viewport {
    flex: 1 1 auto;
    min-height: 180px;
}

.game-app_fullscreen .vr-game__canvas {
    height: 100%;
    min-height: 180px;
}

@media (max-width: 650px) {
    .vr-game {
        padding: 8px;
    }
    .vr-game__canvas {
        height: 55vh;
    }
    .vr-game .vr-game__enter-button {
        min-height: 64px;
        padding: 16px 24px;
        font-size: 20px;
    }
    .vr-game__status,
    .vr-game__help {
        font-size: 10px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .vr-game__canvas {
        height: 65vh;
        min-height: 180px;
    }
}

@media (orientation: portrait) {
    .game-app_touch.vr-game .vr-game__viewport {
        flex: none;
        margin-top: auto;
    }
}

@media (orientation: landscape) {
    .game-app_touch .vr-game__entry {
        margin-left: 144px;
        margin-right: 200px;
    }
    .game-app_touch.vr-game .vr-game__viewport {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }
    .game-app_touch.vr-game .vr-game__canvas {
        flex: 1;
        height: 0;
        min-height: 0;
    }
}
