@import url('https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,500;1,700;1,900&family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Share+Tech+Mono&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: Alkhemikal;
    src: url(Alkhemikal.ttf);
}

body {
    background-image: url(./img/background.png);
    background-repeat: repeat;
    background-color: black;
    color: #fff;
    font-family: "Alkhemikal";
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    font-size: 32px;
    touch-action: manipulation;
    font-weight: normal !important;
    .charactercont {
        display: flex;
        flex-direction: row;
        gap: 15px;
        justify-content: space-between;
        .avatarname {
            margin-top: auto;
            margin-bottom: auto;
        }
        .characterpng {
            width: 70px;
        }
    }
}
    a {
        color: white;
    }

    .imatesto {
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        place-content: center;
        padding: 25px;
        img {
            max-width: max-content;
            
        }
    }

#desktop-hint {
    display: none;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

#content-container {
    border: 2px solid #fff;
    border-radius: 12px;
    width: 90vw;
    max-width: 400px;
    height: 45vh;
    margin-bottom: 5%;
    position: relative;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: black;
}

#content-container.fullscreen {
    height: 60vh;
    margin-bottom: 0px;
}

#floating-back {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 1rem;
    z-index: 10;
    display: none;
    background: #000;
}

#floating-back.visible {
    display: flex;
}

.view {
    width: 100%;
    height: 100%;
    display: none;
    padding: 15px;
}

.view.active-view {
    display: block;
}

.view.menu-grid.active-view {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;
    gap: 15px;
    padding-bottom: 15px;
    overflow-y: auto;
}

.selectable {
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    height: 60px;
    transition: background-color 0.1s, color 0.1s, transform 0.1s;
}

.selectable.selected {
    background-color: #fff;
    color: #000;

    img {
        filter: invert(1);
    }
}

.selectable.active {
    transform: scale(0.92);
}

.text-view {
    overflow-y: auto;
}

.text-view::-webkit-scrollbar {
    width: 2px;
}

.text-view::-webkit-scrollbar-thumb {
    background: #fff;
    border-radius: 0px;
}

.page-title {
    margin-bottom: 15px;
    font-size: 1.2rem;
    padding-bottom: 15px;
    padding-right: 40px;
    font-size: 42px;
}

.content-list {
    margin-left: 20px;
    line-height: 1.8;
}

#blog-content {
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.blog-image {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    margin: 20px auto 0;
    border: 2px solid #fff;
    border-radius: 8px;
}

#mobile-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 90vw;
    max-width: 400px;
    padding: 10px;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    max-height: 200px;
    opacity: 1;
    overflow: hidden;
}

#mobile-controls.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

.d-pad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.release-cover-exp {
    max-width: 80%;
    border: 2px solid #fff;
    border-radius: 12px;
}

.imgcenter {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 25px 0px; 
}

.d-pad-middle {
    display: flex;
    gap: 55px;
}

.control-btn {
    background: black;
    color: #fff;
    border: 2px solid #fff;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    user-select: none;
}

.disabled {
    color: gray;
    pointer-events: none;
}

.control-btn:active {
    background: #fff;
    color: #000;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    margin-left: 20px;
}

.round-btn {
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
}

.cclinks {
    display: none;
    gap: 10px;
    flex-direction: column;
}

.listen-link {
    text-align: center;
}

    
    
@media (min-width: 768px) {
    #mobile-controls {
        display: none !important;
    }

    #desktop-hint {
        display: block;
        font-size: 24px;
    }

    #content-container {
        width: 60vw;
        height: 60vh;
        max-width: 800px;
    }

    #content-container.fullscreen {
        height: 85vh;
    }

    .view.menu-grid.active-view {
        grid-template-columns: 1fr 1fr;
    }

    .release-cover-exp {
        max-width: 50%;
    }

    #content-container {
        margin-bottom: 0;
    }
}

:root {
    --bevel-lift: clamp(3px, 0.85vmin, 6px);
    --bevel-soft: clamp(8px, 2.2vmin, 16px);
    --bevel-glow: clamp(18px, 5vmin, 42px);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0) 12%,
            rgba(255, 255, 255, 0) 88%,
            rgba(0, 0, 0, 0.16) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 0 0 clamp(5px, 1.2vmin, 10px) rgba(0, 0, 0, 0.22),
        inset 0 clamp(8px, 2vmin, 18px) var(--bevel-glow) rgba(0, 0, 0, 0.38),
        inset 0 0 clamp(70px, 16vmin, 160px) rgba(0, 0, 0, 0.28);
}

#content-container {
    background-image:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.055) 0%,
            rgba(255, 255, 255, 0) 16%,
            rgba(0, 0, 0, 0) 84%,
            rgba(0, 0, 0, 0.32) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        inset 1px 0 0 rgba(255, 255, 255, 0.10),
        inset 0 -1px 0 rgba(0, 0, 0, 0.92),
        inset -1px 0 0 rgba(0, 0, 0, 0.70),
        inset 0 0 var(--bevel-soft) rgba(0, 0, 0, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.14),
        0 var(--bevel-lift) var(--bevel-soft) rgba(0, 0, 0, 0.78),
        0 clamp(10px, 3vmin, 26px) clamp(22px, 6vmin, 48px) rgba(0, 0, 0, 0.42);
}

.selectable {
    background-color: #000;
    background-image:
        radial-gradient(120% 90% at 30% 18%,
            rgba(255, 255, 255, 0.14) 0%,
            rgba(255, 255, 255, 0.03) 42%,
            rgba(0, 0, 0, 0) 62%),
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.06) 0%,
            rgba(0, 0, 0, 0) 45%,
            rgba(0, 0, 0, 0.16) 100%);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9);
    transition:
        background-color 0.1s,
        color 0.1s,
        transform 0.1s,
        box-shadow 0.1s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 1px 0 0 rgba(255, 255, 255, 0.14),
        inset 0 -2px 2px rgba(0, 0, 0, 0.85),
        inset -1px 0 0 rgba(0, 0, 0, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.10),
        0 2px 0 rgba(0, 0, 0, 0.60),
        0 var(--bevel-lift) var(--bevel-soft) rgba(0, 0, 0, 0.58);
}

.selectable.selected {
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.95),
        inset 1px 0 0 rgba(255, 255, 255, 0.80),
        inset 0 -2px 3px rgba(0, 0, 0, 0.22),
        inset -1px 0 0 rgba(0, 0, 0, 0.12),
        0 2px 0 #a3a3a3,
        0 var(--bevel-lift) var(--bevel-soft) rgba(0, 0, 0, 0.62);
}

.selectable.active {
    box-shadow:
        inset 0 3px 7px rgba(0, 0, 0, 0.40),
        inset 0 -1px 0 rgba(255, 255, 255, 0.28),
        inset 1px 0 3px rgba(0, 0, 0, 0.30),
        0 1px 0 rgba(255, 255, 255, 0.10);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.control-btn {
    background-image:
        radial-gradient(120% 100% at 30% 20%,
            rgba(255, 255, 255, 0.17) 0%,
            rgba(255, 255, 255, 0.03) 40%,
            rgba(0, 0, 0, 0) 62%),
        linear-gradient(180deg, #1b1b1b 0%, #050505 58%, #000000 100%);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        inset 1px 0 0 rgba(255, 255, 255, 0.14),
        inset 0 -2px 2px rgba(0, 0, 0, 0.90),
        inset -1px 0 0 rgba(0, 0, 0, 0.55),
        0 2px 0 rgba(0, 0, 0, 0.65),
        0 var(--bevel-lift) var(--bevel-soft) rgba(0, 0, 0, 0.55);
}

.round-btn {
    background-image:
        radial-gradient(circle at 34% 24%,
            rgba(255, 255, 255, 0.42) 0%,
            rgba(255, 255, 255, 0.10) 13%,
            rgba(255, 255, 255, 0) 30%),
        radial-gradient(circle at 50% 42%,
            #2c2c2c 0%,
            #0d0d0d 55%,
            #000000 100%);
    box-shadow:
        inset 0 2px 1px rgba(255, 255, 255, 0.45),
        inset 2px 0 0 rgba(255, 255, 255, 0.10),
        inset 0 -3px 5px rgba(0, 0, 0, 0.85),
        inset -2px 0 0 rgba(0, 0, 0, 0.50),
        0 2px 0 rgba(0, 0, 0, 0.65),
        0 var(--bevel-lift) var(--bevel-soft) rgba(0, 0, 0, 0.58);
}

.control-btn:active {
    background: #ffffff;
    color: #000000;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    box-shadow:
        inset 0 3px 7px rgba(0, 0, 0, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.95),
        0 1px 0 rgba(255, 255, 255, 0.20);
    transform: translateY(1px);
}

/* ============================================================
   Geotexture pixel screen (optimized)
   img/Geotexture.svg is pre-rendered into two small tiles: the
   faint dot field and the dark halftone used on lit keys. The
   display uses plain background images now: no CSS masks, no
   blend modes and no continuously animated full-screen layer.
   The moving spotlight is a canvas painted once from the same
   dots, then moved with transform only.
   ============================================================ */

#content-container {
    --screen-pixel: 152px;
    --glow-size: 520px;
    isolation: isolate;
    background-image:
        url("img/pixels-field.webp"),
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.055) 0%,
            rgba(255, 255, 255, 0) 16%,
            rgba(0, 0, 0, 0) 84%,
            rgba(0, 0, 0, 0.32) 100%);
    background-repeat: repeat, no-repeat;
    background-size: var(--screen-pixel) var(--screen-pixel), auto;
    background-position: 0 0, 0 0;
}

.screen-glow {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    width: var(--glow-size);
    height: var(--glow-size);
    margin-left: calc(var(--glow-size) / -2);
    margin-top: calc(var(--glow-size) / -2);
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transition: transform 0.25s ease-out, opacity 0.3s ease;
    will-change: transform;
}

/* The lit key is printed with the same halftone, as dark pixels. */
.selectable {
    position: relative;
}

.selectable::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image: url("img/pixels-key.webp");
    background-repeat: repeat;
    background-size: var(--screen-pixel) var(--screen-pixel);
    opacity: 0;
    transition: opacity 0.16s ease;
}

.selectable.selected::after {
    opacity: 0.45;
}

@media (max-width: 767px) {
    #content-container {
        --screen-pixel: 128px;
        --glow-size: 430px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .screen-glow,
    .selectable::after {
        transition: none;
    }
}
