@font-face {
    font-family: "Courier New";
    src: local("CourierNewPSMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Courier New";
    src: local("CourierNewPS-BoldMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Courier New";
    src: local("CourierNewPS-ItalicMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
    font-display: block;
}

@font-face {
    font-family: "Courier New";
    src: local("CourierNewPS-BoldItalicMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    font-weight: bold;
    font-style: italic;
    font-display: block;
}


.luna-title {
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    width: 72%;
    max-width: 1100px;
    color: #383834;
    font-family: "Blue Screen", monospace;
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 0;
    word-spacing: 0;
    line-height: 1;
    text-align: center;
    z-index: 5;
}

.luna-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(8, 9, 8, 0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.luna-lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.luna-lightbox-image-container {
    position: absolute;
    top: calc(5vh + 15px);
    right: 30px;
    bottom: 115px;
    left: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    touch-action: none;
    cursor: zoom-in;
}

.luna-lightbox-image {
    display: block;
    position: static;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1;
    filter: none;
    flex: 0 0 auto;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center center;
    transition: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
}

.luna-lightbox button {
    position: absolute;
    border: none;
    background: none;
    color: #a8a8a3;
    font-family: "Courier New", Courier, monospace;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.luna-lightbox button:hover {
    color: #bcbcb7;
}

.luna-lightbox-close {
    top: 25px;
    right: 30px;
    font-size: 34px !important;
}

.luna-lightbox-previous {
    left: calc(50% - 95px);
    bottom: 55px;
    top: auto;
    transform: none;
    padding: 18px 22px;
    margin: -18px -22px;
    color: #92928c;
    font-size: 32px;
}

.luna-lightbox-next {
    left: calc(50% + 67px);
    right: auto;
    bottom: 55px;
    top: auto;
    transform: none;
    padding: 18px 22px;
    margin: -18px -22px;
    color: #92928c;
    font-size: 32px;
}

@media screen and (max-width: 600px) {

    .luna-lightbox-image-container {
        top: calc(5vh + 15px);
        right: 12px;
        bottom: 150px;
        left: 12px;
    }

    .luna-lightbox-close {
        top: 18px;
        right: 20px;
        font-size: 30px !important;
    }

    .luna-lightbox-previous {
        left: calc(50% - 60px);
        bottom: 75px;
        padding: 22px 24px;
        margin: -22px -24px;
        font-size: 32px;
    }

    .luna-lightbox-next {
        left: calc(50% + 32px);
        right: auto;
        bottom: 75px;
        padding: 22px 24px;
        margin: -22px -24px;
        font-size: 32px;
    }
}

@media screen and (max-width: 380px) {

    .luna-lightbox button {
        font-size: 24px;
    }

    .luna-lightbox-close {
        font-size: 30px !important;
    }
}

.luna-title {
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    width: 72%;
    max-width: 1100px;
    color: #383834;
    font-family: "Blue Screen", monospace;
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    z-index: 5;
}

.luna-title > span { display: inline; }

.luna-back {
    position: absolute;
    left: 0;
    top: -4px;
    color: #383834;
    text-decoration: none;
    font-family: "Blue Screen", monospace;
    font-size: 28px;
    line-height: 1;
    white-space: nowrap;
}

.luna-back:hover { color: #33332d; }

.luna-window {
    font-family: "Courier New", Courier, monospace;
    position: absolute;
    top: 105px;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 86%;
    max-width: 920px;
    padding: 26px 30px 26px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    background: rgba(8, 9, 8, 0.6);
    scrollbar-width: thin;
    scrollbar-color: #080908 transparent;
    z-index: 5;
}

.luna-window::-webkit-scrollbar { width: 6px; }
.luna-window::-webkit-scrollbar-track { background: transparent; }
.luna-window::-webkit-scrollbar-thumb { background: #080908; }

.luna-inner {
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
}

.luna-profile {
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.luna-hero { margin: 0; }

.luna-hero-button {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.luna-hero img {
    opacity: 1;
    filter: none;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #11120f;
}

.luna-name {
    margin: 2px 0 10px;
    color: #d4d4ce;
    font-family: "Blue Screen", monospace;
    font-size: 34px;
    font-weight: normal;
    letter-spacing: 3px;
    line-height: 1;
}

.luna-list { margin: 0; padding: 0; }

.luna-list > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding: 4px 0;
}

.luna-list dt {
    color: #929292;
    font-family: "Blue Screen", monospace;
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 1.6;
}

.luna-list dd {
    margin: 0;
    color: #b9b9b3;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.luna-section { margin-top: 34px; }

.luna-heading {
    margin: 0 0 10px;
    color: #d4d4ce;
    font-family: "Blue Screen", monospace;
    font-size: 13px;
    font-weight: normal;
    letter-spacing: 2px;
    line-height: 1;
}

.luna-likes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.luna-likes h3 {
    margin: 0 0 6px;
    color: #929292;
    font-family: "Blue Screen", monospace;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 1.5px;
}

.luna-likes ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.luna-likes li {
    position: relative;
    padding: 0 0 4px 14px;
    color: #b9b9b3;
    font-size: 12px;
    line-height: 1.5;
}

.luna-likes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    background: #b9b9b3;
}

.luna-dislikes-list li { color: #8a8a84; }
.luna-dislikes-list li::before { background: #5c5c57; }

.luna-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.luna-piece {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding: 0 0 100% 0;
    margin: 0;
    border: none;
    background: #11120f;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.luna-piece img {
    opacity: 1;
    filter: none;
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.25s ease;
}

.luna-piece:hover img { transform: scale(1.03); }

@media screen and (max-width: 600px) {
    .luna-title {
        top: 58px;
        width: 88%;
        font-size: 20px;
    }

    .luna-back { top: -3px; font-size: 24px; }

    .luna-window {
        top: 100px;
        bottom: 18px;
        width: 94%;
        padding: 14px 14px 18px;
    }

    .luna-profile {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 12px;
    }

    .luna-hero { width: 100%; max-width: none; margin: 0; }

    .luna-name { font-size: 22px; margin: 0 0 6px; letter-spacing: 1.5px; }

    .luna-list > div { grid-template-columns: 1fr; gap: 0; padding: 2px 0; }
    .luna-list dt { font-size: 9px; letter-spacing: 0.8px; line-height: 1.4; }
    .luna-list dd { font-size: 10px; line-height: 1.4; }

    .luna-section { margin-top: 24px; }
    .luna-heading { font-size: 12px; }
    .luna-likes { gap: 14px; }
    .luna-likes li { font-size: 11px; }
    .luna-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
}

@media screen and (max-width: 380px) {
    .luna-title { top: 54px; width: 90%; font-size: 18px; }
    .luna-back { font-size: 22px; }
    .luna-window { top: 96px; }
    .luna-profile { gap: 10px; }
    .luna-name { font-size: 19px; }
}

@media screen and (min-width: 601px) {
    .luna-window { width: 80%; max-width: 780px; padding: 22px 30px 24px; }

    .luna-inner {
        display: grid;
        grid-template-columns: 208px minmax(0, 1fr);
        grid-template-rows: auto 1fr auto;
        column-gap: 32px;
        max-width: none;
    }

    .luna-profile { display: contents; }

    .luna-hero { grid-column: 1; grid-row: 1 / 3; }
    .luna-facts { grid-column: 2; grid-row: 1; }

    .luna-likes-section {
        grid-column: 2;
        grid-row: 2;
        align-self: end;
        margin-top: 18px;
    }

    .luna-photos-section {
        grid-column: 1 / 3;
        grid-row: 3;
        margin-top: 24px;
    }

    .luna-list > div { grid-template-columns: 130px minmax(0, 1fr); }
    .luna-list > div:first-child { padding-top: 0; }

    .luna-likes { grid-template-columns: 1fr 1fr; gap: 24px; }
    .luna-likes li { padding-bottom: 3px; }

    .luna-gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.luna-now {
    position: absolute;
    top: 87px;
    left: 50%;
    transform: translateX(-50%);
    width: 86%;
    max-width: 780px;
    margin: 0;
    color: #4a4a45;
    font-family: "Blue Screen", monospace;
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 5;
}

.luna-meow {
    position: absolute;
    right: 0;
    top: -6px;
    width: 28px;
    height: 28px;
    padding: 4px;
    border: none;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.luna-meow[hidden] { display: none; }
.luna-meow svg { display: block; width: 100%; height: 100%; fill: #383834; }
.luna-meow:hover svg, .luna-meow:active svg { fill: #555550; }

@media screen and (max-width: 600px) {
    .luna-now { top: 83px; width: 94%; font-size: 10px; letter-spacing: 0.5px; }
    .luna-meow { top: -5px; width: 26px; height: 26px; }
}

@media screen and (max-width: 380px) {
    .luna-now { top: 79px; font-size: 9px; }
}