body {
    position: relative;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: radial-gradient(circle at top, #041a04 0%, #000 55%);
    min-height: 100vh;
    margin: 0;
    display: block;
    align-items: center;
    justify-content: center;
    font-family: 'Share Tech Mono', 'Consolas', monospace;
    height: 100vh;
    cursor: url("./cursor/cursor.png") 0 0, auto;
    overflow-x: hidden;
}

button,
a,
.neon-btn {
    cursor: url("./cursor/select-cursor.png") 6 2, pointer;
}

#welcomeScreen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    box-sizing: border-box;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    width: 70vw;
    height: 120vh;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(57, 255, 20, 0.28) 0%, rgba(57, 255, 20, 0.04) 55%, transparent 75%);
    filter: blur(2px);
    opacity: 0.8;
    pointer-events: none;
    animation: glowSweep 10s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes glowSweep {
    0% {
        transform: translateX(-55%) translateY(-4%);
        opacity: 0.7;
    }

    50% {
        transform: translateX(-50%) translateY(0%);
        opacity: 0.9;
    }

    100% {
        transform: translateX(-45%) translateY(4%);
        opacity: 0.7;
    }
}

#screenRoot>div {
    will-change: transform, opacity;
}

.screen-slide-in {
    animation: screenSlideIn 0.45s ease-out forwards;
}

.screen-slide-out {
    animation: screenSlideOut 0.35s ease-in forwards;
}

@keyframes screenSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes screenSlideOut {
    from {
        opacity: 1;
        transform: translate(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(25px) scale(0.98);
    }
}

#bgCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

button,
a,
.neon-btn {
    cursor: url("./cursor/select-cursor.png") 6 2, pointer;
}

.container {
    text-align: center;
    padding: 50px 40px;
    max-width: 900px;
    width: 80vw;
    margin: 0 auto;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.36));
    border: 1px solid rgba(57, 255, 20, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 0 35px rgba(57, 255, 20, 0.8);
    border-radius: 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}

.container:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 60px #39ff14, 0 0 110px rgba(57, 255, 20, 0.6);
    border-color: rgba(55, 255, 20, 0.664);
}

.neon-letter {
    transition: color 0.25s, text-shadow 0.25s;
    display: inline-block;
}

.neon-letter:hover {
    color: #cbffcb;
    text-shadow: 0 0 24px #39ff14, 0 0 43px #14ff84, 0 0 62px #48ff00;
}

.neon-text {
    color: #39ff14;
    font-size: 2rem;
    margin: 32px 0 26px 0;
    text-shadow: 0 0 8px #39ff14, 0 0 20px #13ff00;
    transition: text-shadow 0.3s;
}

.neon-text:hover {
    text-shadow: 0 0 15px #39ff14, 0 0 35px #13ff00, 0 0 55px #48ff00;
}

.neon-btn {
    margin-top: 30px;
    padding: 17px 48px;
    background: #111;
    color: #39ff14;
    font-weight: bold;
    font-size: 1.25rem;
    border: 3px solid #39ff14;
    border-radius: 14px;
    text-shadow: 0 0 8px #39ff14;
    box-shadow: 0 0 22px #13ff00, 0 0 38px #39ff14 inset;
    outline: none;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.18s;
    position: relative;
}

.neon-btn:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: 13px;
    pointer-events: none;
    box-shadow: 0 0 25px 4px #39ff14, 0 0 60px 0 #13ff00 inset;
    opacity: 0;
    transition: opacity 0.4s;
}

.neon-btn:hover {
    background: #39ff14;
    color: #000;
    box-shadow: 0 0 60px #39ff14;
    transform: scale(1.04);
}

.neon-btn:hover:after {
    opacity: 1;
}

@keyframes guidePopIn {
    0% {
        opacity: 0;
        transform: translateY(-24px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes guidePopOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
}

#guideDock {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 4000;
    pointer-events: auto;
}

#guideBtn {
    width: 80px;
    height: 60px;
    border-radius: 18px;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px #39ff14, inset 0 0 10px rgba(57, 255, 20, 0.3);
}

#guideBtn:hover {
    transform: scale(1.1);
}

.guide-modal {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 8, 0, 0.5) 0%, rgba(0, 0, 0, 0.52) 60%);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.guide-modal.hidden {
    display: none !important;
}

.guide-modal:not(.hidden) {
    display: flex !important;
}

.guide-content {
    width: min(980px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 40px 28px;
    border-radius: 26px;
    background: radial-gradient(circle at top, rgba(8, 40, 8, 0.96) 0%, #000 70%);
    border: 2px solid #39ff14;
    box-shadow: 0 0 40px rgba(55, 255, 20, 0.4), 0 0 90px rgba(55, 255, 20, 0.2), inset 0 0 22px rgba(55, 255, 20, 0.1);
    text-align: center;
    transform-origin: center top;
}

.guide-content.anim-in {
    animation: guidePopIn 0.32s ease-out forwards;
}

.guide-content.anim-out {
    animation: guidePopOut 0.26s ease-in forwards;
}

.guide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #39ff14, #00ff88);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(57, 255, 20, 0.5);
}

.guide-content h3 {
    color: #39ff14;
    margin: 25px 0 15px;
    font-size: 1.5rem;
}

.guide-section {
    text-align: left;
    margin: 20px auto;
    padding: 20px;
    background: rgba(57, 255, 20, 0.1);
    border-left: 4px solid #39ff14;
    border-radius: 8px;
    color: #39ff14;
    max-width: 860px;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #39ff14 #02080200;
}

html::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track {
    background: #020802;
}

html::-webkit-scrollbar-thumb {
    background: #39ff14;
    border-radius: 18px;
    box-shadow: 0 0 12px #39ff14;
}

html::-webkit-scrollbar-thumb:hover {
    background: #6dff6d;
}

@media (max-width: 600px) {
    .guide-content {
        padding: 22px 18px 18px;
        border-radius: 18px;
    }

    #guideBtn {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
}