@import url("../../css/fonts.css?v=plex-20261029");

@import url("../../css/palette.css?v=ocean-20261029");



:root {
    color-scheme: dark;
    --sky-text: var(--palette-parchment);
    --sky-muted: color-mix(in srgb, var(--palette-parchment) 76%, var(--palette-night));
    --sky-blue: var(--palette-teal);
    --sky-cyan: var(--palette-accent-on-dark);
    --sky-line: rgba(var(--palette-aqua-rgb), .22);
    --sky-ease: cubic-bezier(.22, 1, .36, 1);
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body.spacepost {
    background: var(--palette-night);
    color: var(--sky-text);
    font: 400 16px/1.55 var(--site-font-family);
}

button, a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

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

button:disabled {
    cursor: wait;
    opacity: .6;
}

[hidden] {
    display: none !important;
}

:where(a, button):focus-visible {
    outline: 2px solid var(--sky-cyan);
    outline-offset: 5px;
}

.sky {
    position: fixed;
    z-index: -1;
    inset: -6%;
    animation: sky-drift 65s ease-in-out infinite alternate;
    will-change: transform;
    background: linear-gradient(180deg, rgba(2, 6, 23, .76), rgba(2, 6, 23, .58) 42%, rgba(2, 6, 23, .95)),
    url('assets/blue-stars.jpg') center / cover;
    pointer-events: none;
}

@keyframes sky-drift {
    from { transform: translate3d(-.9%, -.5%, 0) scale(1.025); }
    to { transform: translate3d(.9%, .7%, 0) scale(1.045); }
}

.sky::after {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 43%, transparent 20%, rgba(var(--palette-night-rgb), .28) 85%);
    content: '';
}

.sky-header {
    position: fixed;
    z-index: 2;
    inset: 0 0 auto;
    display: grid;
    min-height: 104px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 22px clamp(24px, 4vw, 64px);
}

.sky-back {
    display: inline-flex;
    width: fit-content;
    min-height: 42px;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border: 1px solid rgba(185, 209, 246, .18);
    border-radius: 999px;
    background: rgba(8, 17, 39, .35);
    color: #dce6f5;
    font-size: .8125rem;
    backdrop-filter: blur(12px);
    transition: background 200ms ease, border-color 200ms ease;
}

.sky-back span {
    font-size: 1.2rem;
    transition: transform 200ms ease;
}

.sky-back:hover {
    border-color: rgba(185, 209, 246, .4);
    background: rgba(87, 134, 203, .12);
}

.sky-back:hover span {
    transform: translateX(-3px);
}

.sky-brand {
    display: grid;
    gap: 5px;
    text-align: center;
}

.sky-brand > span {
    color: var(--sky-muted);
    font-size: .625rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sky-brand strong {
    font: 700 .9375rem/1.3 var(--site-heading-font-family);
    letter-spacing: .01em;
}

.sky-summary {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: end;
    align-items: baseline;
    gap: 8px 16px;
}

.sky-summary-label {
    color: var(--sky-muted);
    font-size: .75rem;
}

.sky-total {
    font-size: .875rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sky-summary progress {
    grid-column: 1 / -1;
    width: 100%;
    height: 2px;
    border: 0;
    background: rgba(172, 198, 235, .2);
    accent-color: #c3e8ff;
}

.sky-summary progress::-webkit-progress-bar {
    background: rgba(172, 198, 235, .2);
}

.sky-summary progress::-webkit-progress-value {
    background: #c3e8ff;
}

.sky-summary progress::-moz-progress-bar {
    background: #c3e8ff;
}

.starfield {
    position: fixed;
    inset: 115px 0 236px;
    overflow: hidden;
    touch-action: pan-y;
}

.sky-scenes {
    position: absolute;
    inset: 0 0 45px;
    perspective: 1200px;
}

.sky-scene {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translate3d(calc(var(--scene-offset) * 125%), 0, -280px) rotateY(calc(var(--scene-offset) * -16deg));
    transition: transform 950ms var(--sky-ease), opacity 700ms ease;
    pointer-events: none;
}

.sky-scene.is-active {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0);
    pointer-events: auto;
}

.constellation-art {
    position: relative;
    width: min(100%, 1040px);
    height: 100%;
    max-height: 680px;
}

.constellation-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.constellation-lines line {
    stroke: rgba(175, 206, 243, .32);
    stroke-width: .8;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 3px rgba(108, 167, 240, .3));
    transition: stroke 350ms ease;
}

.constellation-lines line.is-earned {
    stroke: rgba(185, 229, 255, .65);
    stroke-width: 1.1;
}

.guide-star {
    position: absolute;
    width: 70px;
    height: 70px;
    background: url('assets/star-light-alpha.webp') center / contain no-repeat;
    transform: translate(-50%, -50%) rotate(var(--star-angle));
    opacity: .3;
    pointer-events: none;
}

.scene-star {
    position: absolute;
    z-index: 1;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    transform: translate(-50%, -50%);
}

.star-light {
    position: absolute;
    width: 122px;
    height: 122px;
    background: url('assets/star-light-alpha.webp') center / contain no-repeat;
    transform: rotate(var(--star-angle)) scale(var(--star-size));
    filter: brightness(1.6) saturate(.8);
    transition: transform 400ms var(--sky-ease), filter 400ms ease;
    pointer-events: none;
}

.scene-star.is-earned .star-light {
    width: 166px;
    height: 166px;
    filter: brightness(2.1) saturate(.7);
}

.scene-star.is-future .star-light {
    width: 86px;
    height: 86px;
    filter: brightness(.75) saturate(0);
    opacity: .5;
}

.scene-star.is-future:hover .star-light,
.scene-star.is-future:focus-visible .star-light {
    filter: brightness(1.3) saturate(0);
    opacity: .9;
}

.sky-scene.is-active .star-light {
    animation: star-breathe 5.7s ease-in-out var(--star-delay) infinite;
}

.scene-star:hover .star-light, .scene-star:focus-visible .star-light {
    transform: rotate(var(--star-angle)) scale(calc(var(--star-size) * 1.22));
    filter: brightness(2.6) saturate(.5);
}

.scene-star.is-new .star-light {
    animation: star-awaken 1.6s ease-out both;
}

.scene-star.is-new::after {
    position: absolute;
    width: 180px;
    height: 180px;
    background: url('assets/star-light-alpha.webp') center / contain no-repeat;
    content: '';
    animation: star-unlock 1.6s ease-out both;
    pointer-events: none;
}

.star-label {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    width: max-content;
    max-width: 210px;
    padding: 8px 12px;
    border: 1px solid var(--sky-line);
    border-radius: 10px;
    background: rgba(var(--palette-night-rgb), .92);
    color: #fff;
    font-size: .8125rem;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, -4px);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
}

.scene-star:hover, .scene-star:focus-visible {
    z-index: 3;
}

.scene-star:hover .star-label, .scene-star:focus-visible .star-label {
    opacity: 1;
    transform: translate(-50%, 0);
}

.scene-star.label-left .star-label {
    transform: translate(-100%, -4px);
}

.scene-star.label-left:hover .star-label, .scene-star.label-left:focus-visible .star-label {
    transform: translate(-100%, 0);
}

.scene-star.label-right .star-label {
    transform: translate(0, -4px);
}

.scene-star.label-right:hover .star-label, .scene-star.label-right:focus-visible .star-label {
    transform: translate(0, 0);
}

.sky-message {
    position: absolute;
    inset: auto 20px 0;
    margin: 0;
    color: var(--sky-muted);
    font-size: .8125rem;
    text-align: center;
    pointer-events: none;
}

.sky-navigation {
    position: fixed;
    z-index: 2;
    right: clamp(20px, 5vw, 80px);
    bottom: max(26px, env(safe-area-inset-bottom));
    left: clamp(20px, 5vw, 80px);
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr) minmax(150px, 1fr);
    align-items: center;
    gap: 10px 24px;
    text-align: center;
    pointer-events: none;
}

.sky-arrow {
    pointer-events: auto;
    display: flex;
    width: fit-content;
    min-height: 52px;
    align-items: center;
    gap: 16px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--sky-muted);
    text-align: left;
    transition: color 200ms ease;
}

.sky-arrow-next {
    justify-self: end;
    text-align: right;
}

.sky-arrow-glyph {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 1.7rem;
    transition: background 250ms ease, transform 250ms ease;
}

.sky-neighbor {
    max-width: 135px;
    font-size: .8125rem;
}

.sky-arrow:hover {
    color: #fff;
}

.sky-arrow:hover .sky-arrow-glyph {
    transform: translateX(4px);
}

.sky-arrow-prev:hover .sky-arrow-glyph {
    transform: translateX(-4px);
}

.sky-caption p {
    margin: 0;
}

.sky-theme {
    color: #b3d8f4;
    font-size: .625rem;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.sky-caption h1 {
    margin: 7px 0 9px;
    font: 700 clamp(1.75rem, 3.8vw, 3.2rem)/1.15 var(--site-heading-font-family);
    letter-spacing: -.035em;
}

.sky-count {
    color: var(--sky-muted);
    font-size: .75rem;
}

.sky-dots {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 3px;
}

.sky-dot {
    pointer-events: auto;
    display: grid;
    width: 30px;
    min-height: 32px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.sky-dot::before {
    width: 18px;
    height: 2px;
    border-radius: 4px;
    background: rgba(201, 224, 255, .22);
    content: '';
    transition: background 250ms ease, width 250ms ease;
}

.sky-dot:hover::before {
    background: rgba(201, 224, 255, .65);
}

.sky-dot[aria-current="true"]::before {
    width: 30px;
    background: #dcf1ff;
    box-shadow: 0 0 10px rgba(113, 185, 255, .5);
}

.sky-help {
    grid-column: 1 / -1;
    margin: 0;
    color: #9cacbf;
    font-size: .6875rem;
}

.sky-legend {
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
    gap: 18px;
    margin: 0;
    color: #ceddf2;
    font-size: .75rem;
}

.sky-legend span::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--sky-cyan);
    content: '';
}

.sky-legend span:nth-child(2)::before {
    background: #fff;
    box-shadow: 0 0 8px #c6ecff;
}

.sky-legend span:nth-child(3)::before {
    background: #8590a3;
}

.touch-help {
    display: none;
}

.achievement-dialog {
    position: fixed;
    width: min(460px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: clamp(26px, 4vw, 40px);
    overflow: auto;
    border: 1px solid rgba(174, 213, 255, .2);
    border-radius: 24px;
    background: #0d1735;
    color: var(--sky-text);
    box-shadow: 0 40px 120px rgba(0, 0, 0, .6), inset 0 1px rgba(207, 229, 255, .05);
}

.achievement-dialog[open] {
    animation: dialog-in 280ms var(--sky-ease);
}

.achievement-dialog::backdrop {
    background: rgba(0, 0, 25, .72);
    backdrop-filter: blur(12px);
}

.dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--sky-muted);
    font-size: 1.75rem;
}

.dialog-close:hover {
    color: #fff;
    background: rgba(210, 230, 255, .08);
}

.achievement-symbol {
    display: block;
    width: 110px;
    height: 80px;
    margin: -10px 0 8px -25px;
    background: url('assets/star-light-alpha.webp') center / 140px no-repeat;
    filter: brightness(1.5) saturate(.5);
}

.achievement-dialog.is-earned .achievement-symbol {
    filter: brightness(2.5) saturate(.7);
}

.achievement-dialog.is-future .achievement-symbol {
    filter: brightness(.8) saturate(0);
}

.achievement-dialog.is-future .achievement-state {
    color: #bdc9db;
}

.achievement-state {
    margin: 0 0 10px;
    color: var(--sky-cyan);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.achievement-dialog h2 {
    margin: 0 0 14px;
    padding-right: 10px;
    font: 700 clamp(1.5rem, 4vw, 2rem)/1.2 var(--site-heading-font-family);
}

.achievement-description {
    margin: 0;
    color: #d5e0f0;
    font-size: .9375rem;
    line-height: 1.65;
}

.achievement-progress {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(173, 204, 241, .14);
}

.achievement-progress > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    font-size: .8125rem;
    color: var(--sky-muted);
}

.achievement-progress strong {
    color: #fff;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.achievement-progress progress {
    display: block;
    width: 100%;
    height: 5px;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: #263258;
    accent-color: #9edfff;
}

.achievement-progress progress::-webkit-progress-bar {
    background: #263258;
}

.achievement-progress progress::-webkit-progress-value {
    border-radius: 20px;
    background: #9edfff;
}

.achievement-progress progress::-moz-progress-bar {
    border-radius: 20px;
    background: #9edfff;
}

.achievement-note {
    margin: 16px 0 26px;
    color: #b4c4df;
    font-size: .8125rem;
}

.achievement-actions {
    display: grid;
    gap: 10px;
}

.sky-primary.kodza-arrow-button {
    --kz-arrow-bg: var(--palette-teal);
    --kz-arrow-fg: #ffffff;
    --kz-arrow-height: 50px;
    --kz-arrow-pad-x: 38px;
    --kz-arrow-radius: 12px;
    --kz-arrow-duration: .45s;
    --kz-arrow-shift: 17px;
    font: 600 .875rem/1.4 var(--site-font-family);
}

.sky-secondary {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #b7c9e0;
    font: 500 .8125rem/1.4 var(--site-font-family);
    text-align: center;
    transition: color 180ms ease, background 180ms ease;
}

.sky-secondary:hover {
    color: #fff;
    background: rgba(150, 194, 255, .06);
}

.refresh-status {
    min-height: 1.4em;
    margin: 12px 0 0;
    color: var(--sky-muted);
    font-size: .8125rem;
}

.no-script {
    position: fixed;
    inset: 35% 20px auto;
    text-align: center;
}

.no-script a {
    text-decoration: underline;
}

@keyframes star-breathe {
    50% {
        opacity: .75;
    }
}

@keyframes star-awaken {
    from {
        filter: brightness(1);
        transform: rotate(var(--star-angle)) scale(.7);
    }

    40% {
        filter: brightness(4);
        transform: rotate(var(--star-angle)) scale(1.3);
    }

    to {
        filter: brightness(2.1);
        transform: rotate(var(--star-angle)) scale(var(--star-size));
    }
}

@keyframes star-unlock {
    from {
        transform: scale(.6);
        opacity: 1;
    }

    to {
        transform: scale(2.3);
        opacity: 0;
    }
}

@keyframes dialog-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .sky-header {
        min-height: 82px;
        grid-template-columns: 1fr auto;
        padding: 14px 18px;
        gap: 14px;
    }

    .sky-brand {
        display: none;
    }

    .sky-summary-label {
        font-size: .6875rem;
    }

    .sky-summary {
        gap: 5px 10px;
    }

    .sky-back {
        padding: 7px 12px;
        font-size: .75rem;
    }

    .starfield {
        inset: 95px 12px 250px;
    }

    .constellation-art {
        max-height: 560px;
    }

    .sky-navigation {
        right: 18px;
        left: 18px;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 8px;
    }

    .sky-arrow-glyph {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .sky-neighbor {
        display: none;
    }

    .sky-caption h1 {
        font-size: 1.5rem;
    }

    .sky-theme {
        font-size: .5625rem;
        letter-spacing: .12em;
    }

    .sky-help {
        max-width: 310px;
        justify-self: center;
        font-size: .625rem;
        line-height: 1.6;
    }

    .scene-star {
        width: 48px;
        height: 48px;
    }

    .star-light {
        width: 94px;
        height: 94px;
    }

    .scene-star.is-earned .star-light {
        width: 126px;
        height: 126px;
    }

    .guide-star {
        width: 44px;
        height: 44px;
    }

    .sky-dot {
        width: 30px;
        min-height: 42px;
    }

    .star-label {
        max-width: 150px;
        font-size: .75rem;
    }

    .sky-message {
        font-size: .75rem;
        line-height: 1.5;
    }

    .desktop-help {
        display: none;
    }

    .touch-help {
        display: inline;
    }

    .achievement-dialog {
        padding: 26px;
    }

    .sky-legend {
        gap: 12px;
        font-size: .75rem;
    }
}

@media (pointer: coarse) {
    .desktop-help {
        display: none;
    }

    .touch-help {
        display: inline;
    }
}

@media (max-height: 550px) and (min-width: 601px) {
    .sky-header {
        min-height: 58px;
        padding: 9px 24px;
    }

    .sky-brand > span, .sky-summary-label {
        display: none;
    }

    .sky-brand strong {
        font-size: .8125rem;
    }

    .starfield {
        inset: 65px 130px 115px;
    }

    .sky-navigation {
        inset: 72px 20px 18px;
        grid-template-columns: 44px 1fr 44px;
        align-content: end;
    }

    .sky-neighbor {
        display: none;
    }

    .sky-caption {
        position: absolute;
        right: 60px;
        bottom: 28px;
        left: 60px;
        pointer-events: none;
    }

    .sky-caption h1 {
        font-size: 1.3rem;
    }

    .sky-theme, .sky-dots, .sky-help {
        display: none;
    }

    .sky-arrow:last-of-type {
        grid-column: 3;
    }

    .sky-arrow-glyph {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .star-light {
        width: 118px;
        height: 118px;
    }

    .scene-star.is-earned .star-light {
        width: 150px;
        height: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}
