
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
    color-scheme: dark;
    --cyan: #55f6ff;
    --pink: #ff4bd8;
    --lime: #a6ff68;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            #17243b 0%,
            #090d19 42%,
            #03050b 100%
        );
    color: #c9faff;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: .07em;
}

header, footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 4vw;
    border-bottom: 1px solid #283c5c;
    background: rgba(4,9,20,.72);
    font-size: 12px;
}

.brand {
    font-size: 22px;
    color: #e9fdff;
    text-shadow: 0 0 8px var(--cyan), 0 0 22px #1689ff;
}

.brand span {
    color: var(--pink);
    animation: blink 1s steps(2) infinite;
}

.meta {
    color: #8fa9c8;
}

.meta b {
    margin-left: 20px;
    color: var(--lime);
    text-shadow: 0 0 10px #7dff79;
}

main {
    max-width: 1540px;
    margin: 34px auto;
    padding: 0 22px;
}

.toolbar {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #8fa9c8;
    font-size: 12px;
    margin-bottom: 14px;
}

.actions {
    display: flex;
    gap: 9px;
}

button {
    background: linear-gradient(180deg,#172843,#0b1426);
    color: #c9faff;
    border: 1px solid #347a9b;
    border-radius: 5px;
    padding: 10px 15px;
    font: inherit;
    cursor: pointer;
    box-shadow:
        inset 0 0 12px #1b719022,
        0 0 12px #12b9e322;
    transition: .15s;
}

button:hover {
    border-color: var(--cyan);
    color: white;
    box-shadow: 0 0 16px #25dfff66;
}

.monitor {
    position: relative;
    background: #03050b;
    border: 1px solid #405777;
    border-radius: 30px;
    padding: 13px;
    overflow: hidden;
    box-shadow:
        0 0 0 5px #101a2b,
        0 0 0 7px #263b59,
        0 22px 70px #000,
        0 0 48px #138eff2c,
        inset 0 0 35px #000;
}

#screen {
    width: 100%;
    min-height: 300px;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
    border-radius: 19px;
    position: relative;
}

#screen canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    filter: saturate(1.18) contrast(1.06);
}

.glass {
    pointer-events: none;
    position: absolute;
    inset: 13px;
    border-radius: 19px;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            rgba(0,0,0,.09) 1px,
            rgba(0,0,0,.09) 2px,
            transparent 4px
        ),
        linear-gradient(
            105deg,
            rgba(255,255,255,.075),
            transparent 18%,
            transparent 72%,
            rgba(70,160,255,.045)
        ),
        radial-gradient(
            ellipse at center,
            transparent 48%,
            rgba(0,0,0,.22) 100%
        );

    box-shadow:
        inset 0 0 70px rgba(0,0,0,.5),
        inset 0 0 22px rgba(80,210,255,.12);
}

.glass:after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(255,40,100,.025),
            transparent 30%,
            rgba(30,220,255,.025)
        );
    mix-blend-mode: screen;
}

.hint {
    text-align: center;
    color: #6c91b6;
    font-size: 11px;
    margin: 20px 0 38px;
}

footer {
    border-top: 1px solid #283c5c;
    border-bottom: 0;
    color: #6685a9;
}

@keyframes blink {
    50% { opacity: 0; }
}

@media(max-width:700px) {
    header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .meta {
        width: 100%;
    }

    .actions {
        width: 100%;
    }

    button {
        flex: 1;
    }

    .monitor {
        padding: 6px;
        border-radius: 18px;
    }

    #screen, .glass {
        border-radius: 12px;
    }

    .glass {
        inset: 6px;
    }
}
