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

body {
    background-color: #050505;
    color: #ffffff;
    font-family: 'Press Start 2P', monospace;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 10px; 
}

.crt::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
}

.snes-container {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 4 / 3;
    max-height: 90vh;
    background: linear-gradient(180deg, #0f0c1b 0%, #2b1055 50%, #751756 100%);
    border: 4px solid #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 20px 15px;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    bottom: -50%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: rotateX(60deg);
    animation: grid-move 5s linear infinite;
}

@keyframes grid-move {
    0% { transform: perspective(200px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(200px) rotateX(60deg) translateY(40px); }
}

.title-box {
    text-align: center;
    z-index: 2;
    margin-top: 10px;
    width: 100%;
}

.subtitle {
    font-size: clamp(8px, 2vw, 12px);
    color: #f7d51d;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.main-title {
    font-size: clamp(22px, 5.5vw, 42px);
    color: #00e5ff;
    text-shadow: 
        3px 3px 0px #d80027,
        -1px -1px 0px #000;
    line-height: 1.2;
    word-break: break-word;
}

.menu-container {
    z-index: 2;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.start-prompt {
    font-size: clamp(10px, 3vw, 16px);
    color: #f7d51d;
    cursor: pointer;
    animation: blink 0.8s infinite alternate;
    padding: 10px;
}

@keyframes blink {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.menu-options {
    display: none;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.menu-options-shown {
    display: block;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.menu-item {
    font-size: clamp(12px, 3.5vw, 16px);
    color: #aaa;
    cursor: pointer;
    position: relative;
    transition: color 0.1s;
    padding: 5px 10px; 
}

.menu-item.active, .menu-item:hover {
    color: #fff;
    text-shadow: 0 0 8px #00e5ff;
}

.menu-item.active::before {
    content: "▶";
    position: absolute;
    left: -20px;
    color: #f7d51d;
    animation: cursor-bounce 0.4s infinite alternate;
}

@keyframes cursor-bounce {
    0% { transform: translateX(0); }
    100% { transform: translateX(5px); }
}

.footer {
    z-index: 2;
    font-size: clamp(7px, 1.8vw, 10px);
    color: #888;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .snes-container {
        aspect-ratio: auto;
        height: 85vh;
        padding: 25px 10px;
    }

    .menu-item.active::before {
        left: -15px;
    }
}