/* CSS VARIABLES /// GLOBAL */

@property --floatY {
    syntax: '<length>';
    inherits: false;
    initial-value: 0px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

body {
    background: black; /* или transparent */
    
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Raleway', sans-serif;
    
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 25px;

    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    letter-spacing: 0.5px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    padding-bottom: 10px;
    opacity: 0.92;
}


/* MAIN CONTAINER */

.container {
    max-width: 520px;
    
    width: 100%;
    padding: 25px 20px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(235, 235, 235, 0.82); /* было 245 */
    border: 1px solid rgba(0, 0, 0, 0.7);

    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.7),
        inset -1px -1px 0 rgba(0, 0, 0, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.35); /* ВАЖНО */
    animation-delay: 0.1s;
    opacity: 0;

    animation:
        uiBoot 0.8s ease-out forwards,
        flickerOnce 0.18s linear 0.85s;


}

ul {
    list-style-type: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    align-items: center;
}

ul li {
    width: 75%;
    max-width: 420px;

    background: rgba(235, 235, 235, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.45);

    padding: 0;
    cursor: pointer;

    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.75),
        inset -1px -1px 0 rgba(0, 0, 0, 0.35);

    transition:
        background 0.15s linear,
        transform 0.15s linear;
}

ul li:hover {
    background: rgba(225, 225, 225, 0.95);
    transform: translateY(-1px);
}

ul li:active {
    background: rgba(210, 210, 210, 1);
    transform: translateY(1px);

    box-shadow:
        inset -1px -1px 0 rgba(255, 255, 255, 0.6),
        inset 1px 1px 0 rgba(0, 0, 0, 0.45);
}

ul li a {
    display: block;
    width: 100%;
    padding: 10px 14px;

    color: #111;
    text-decoration: none;

    font-size: 1.15rem;
    font-weight: normal;
    letter-spacing: 0.3px;

    text-align: center;

    font-family: Verdana, Tahoma, Arial, sans-serif;
}

ul li:hover a {
    color: #000;
}


/* GLOBAL UI ANIMATIONS */

@keyframes uiBoot {
    0% {
        opacity: 0;
        filter: blur(3px);
        transform: translateY(6px);
    }
    40% {
        opacity: 0.4;
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        filter: none;
        transform: none;
    }
}

@keyframes flickerOnce {
    0% { opacity: 1; }
    20% { opacity: 0.85; }
    40% { opacity: 1; }
    60% { opacity: 0.9; }
    100% { opacity: 1; }
}

@keyframes screenBreath {
    0%   { opacity: 0.02; }
    50%  { opacity: 0.045; }
    100% { opacity: 0.02; }
}


/* BACKGROUND */

.bg {
    position: fixed;
    inset: 0;
    z-index: -2;

    background-image: url("LainLove.gif");
    background-repeat: repeat;
    background-size: 74px 8px;

    animation: bgScroll 120s linear infinite;
}

@keyframes bgScroll {
    from { background-position: 0 0; }
    to   { background-position: 0 -500px; }
}


/* CHARACTER */

.character {
    position: fixed;
    left: 170px;
    bottom: 0;
    width: 420px;
    height: 720px;

    background-image: url("LainBehindMove2.gif");
    background-repeat: no-repeat;
    background-size: clamp(260px, 15vw, 420px) auto;
    background-position: left bottom;

    z-index: -1;
    pointer-events: none;

    animation: characterFloat 14s ease-in-out infinite;
    will-change: transform;
}







.scene {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}


            
@keyframes characterFloat { /* Мягкий параллакс */
    0%   { --floatY: 0px; }
    50%  { --floatY: -4px; }
    100% { --floatY: 0px; }
}


/* INFO PANEL (STATUS) */

.info-panel {
    position: fixed;
    top: 24px;
    right: 40px;

    width: 190px;
    height: 260px;

    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.35);

    padding: 10px;

    font-family: monospace;
    font-size: 0.71rem;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.75);

    animation:
        uiBoot 1.1s ease-out forwards,
        panelFloat 18s ease-in-out infinite;
    animation-delay: 0.6s, 1.7s;
    opacity: 0;
}

.panel-gif {
    width: 100%;
    height: 60px;

    background-image: url("small-noise.gif"); /* заменишь на нужный */
    background-repeat: repeat;
    background-size: auto;

    opacity: 0.35;
    margin-bottom: 8px;
}

.panel-text {
    line-height: 1.4;
}

.panel-text div {
    margin-bottom: 3px;
    opacity: 0.9;
}

.panel-date {
    margin-top: 8px;
    opacity: 0.55;
}


@keyframes panelFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}


/* UI CLUSTER */

.ui-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ui-panel::after {
    content: "";
    position: fixed;
    overflow: hidden;
    inset: 0;

    background-image:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.03),
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 3px
        );

    pointer-events: none;
    opacity: 0.35;
}




/* WIN95 WINDOW */

        /* frame */
.win95 {
    width: 200px;
    
    background: #c0c0c0;

    border: 2px solid;
    border-color:
        #ffffff
        #404040
        #404040
        #ffffff;
    position: relative;
    overflow: hidden;
    animation: uiBoot 0.9s ease-out forwards;
    animation-delay: 0.25s;
    opacity: 0;
        
}

.win95::after {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        repeating-linear-gradient(
            to bottom,
            rgba(0,0,0,0.04),
            rgba(0,0,0,0.04) 1px,
            transparent 1px,
            transparent 3px
        ),
        url("noise.png");

    opacity: 0.18;
    pointer-events: none;
}
        /* title bar */
.win95-title {
    background: #808080;
    color: #000;
    
    font-size: 13px;
    padding: 4px 6px;
    font-family: Tahoma, Verdana, sans-serif;
}
        /* content area */
.win95-body {
    display: flex;
    flex-direction: column;
    background: #b0b0b0;    
    
    
}
        /* clickable */
.win95-body a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;

    font-family: Tahoma, Verdana, sans-serif;
    font-size: 13px;
    color: #000;
    text-decoration: none;

    padding: 6px 8px;

    background: #b0b0b0;

    border-top: 1px solid #dcdcdc;
    border-bottom: 1px solid #808080;

    cursor: default;
}

.win95-body a:hover {
    background: #000080; /* classic win95 blue */
    color: #ffffff;

    cursor: pointer;
}

.win95-body a:active {
    background: #000060;
    transform: translate(1px, 1px);
}
        /* icons */
.win95-body .icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.win95-body a:hover .icon {
    opacity: 1;
    filter: brightness(1.1);
}

.icon.steam {
    background-image: url("/icons2/steam.png");
}
.icon.telegram {
    background-image: url("/icons2/telegram.png");
}
.icon.github {
    background-image: url("/icons2/github.png");
}
.icon.neocities {
    background-image: url("/icons2/neocities.png");
}
        /* footer */
.win95-footer {
    font-family: monospace;
    font-size: 10px;
    padding: 4px 6px;

    color: rgba(0,0,0,0.55);
    background: #bcbcbc;

    border-top: 1px solid #ffffff;
}


/* MICRO GIF */

.micro-gif {
    width: 88px;
    height: 31px;

    background-image: url("micro.gif");
    background-repeat: repeat;
    opacity: 0.9;
}


/* TOP PANEL (DEBUG) */

.top-panel {
    position: fixed;
    bottom: 12px;
    left: 12px; /* или left, если слева */
    z-index: 10;

    padding: 10px 12px;

    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);

    backdrop-filter: blur(0.5px); /* очень слабо */

    background-image:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.02),
            rgba(255,255,255,0.02) 1px,
            transparent 1px,
            transparent 3px
        );

    animation: uiBoot 0.7s ease-out forwards;
    animation-delay: 0.45s;
    opacity: 0;    
}

.top-panel::after {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("noise.png");
    background-repeat: repeat;

    opacity: 0.2; /* можно 0.08–0.18 */
    pointer-events: none;
}

.ui-status {
    font-family: monospace;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(220, 220, 220, 0.75);
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    max-width: 220px;
    position: relative;
    z-index: 1;
    text-shadow:
        0 0 1px rgba(255,255,255,0.25),
        0 0 3px rgba(0,0,0,0.6);
}

.panel-date {
    margin-top: 8px;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 0.4px;
    opacity: 0.6;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.75);
}


/* MOBILE ( NOTICE ) */

.mobile-notice {
    z-index: 10001;
    display: none;

    position: fixed;
    top: 14px;
    left: 50%;

    transform: translateX(-50%);

    max-width: 90%;

    font-family: monospace;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;

    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(255,255,255,0.25);

    text-shadow:
        0 0 1px rgba(255,255,255,0.25),
        0 0 4px rgba(0,0,0,0.8);

    box-shadow:
        0 6px 18px rgba(0,0,0,0.6);

    opacity: 0;
}

.mobile-countdown::after {
    content: "AUTO CLOSE IN: 4";
    animation: countdownSteps 4s steps(4, end) forwards;
}

@keyframes countdownSteps {
    0%   { content: "AUTO CLOSE IN: 4"; }
    25%   { content: "AUTO CLOSE IN: 3"; }
    50%  { content: "AUTO CLOSE IN: 2"; }
    75%  { content: "AUTO CLOSE IN: 1"; }
    100% { content: "AUTO CLOSE IN: 0"; }
}

@keyframes mobileNoticeLife {
    0% {
        opacity: 0;
        transform: translate(-50%, 6px);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -6px);
        pointer-events: none;
    }
}



/* COMPATIBLITY (MOBILE) */

@media (max-width: 900px) {
    .character,
    .info-panel,
    /* .ui-panel, */
    .micro-gif,
    .top-panel {
        display: none;
    }

    body {
        background: #000;
    }

    .container {
        margin-top: 5vh;
        max-width: 90%;
    }

    .mobile-notice {
        display: block;
        animation: mobileNoticeLife 5s ease-out forwards;
        
    }

    .mobile-title {
    font-size: 11px;
    letter-spacing: 0.8px;
    opacity: 0.7;
    margin-bottom: 4px;
    }


    html, body {
        height: 100%;
        overflow: hidden;
        overscroll-behavior: none;
        touch-action: manipulation;
    }
}


/* GLOBAL OVERLAYS */

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;

    background: rgba(0, 0, 0, 0.03);
    pointer-events: none;

    animation: screenBreath 18s ease-in-out infinite;
}