.neon-echo-wrap {
    min-height: calc(100vh - 180px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.neon-echo-game {
    position: relative;
    width: min(100%, 960px);
    aspect-ratio: 4 / 3;
    box-shadow: 0 22px 70px -42px rgba(29, 38, 34, 0.48);
    border: 1px solid rgba(180, 0, 255, 0.4);
    background: #020010;
    overflow: hidden;
    border-radius: var(--radius-md);
}

#neon-game-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: none;
    touch-action: none;
}

.neon-ui {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
    z-index: 10;
    user-select: none;
}

.neon-actions {
    margin-top: 10px;
    pointer-events: auto;
}

.neon-btn-reset {
    border: 1px solid rgba(0, 243, 255, 0.6);
    background: rgba(0, 0, 0, 0.65);
    color: #c9f9ff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    font-family: "Courier New", monospace;
}

.neon-btn-reset:hover {
    background: rgba(0, 243, 255, 0.12);
}

.neon-level-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    text-shadow: 0 0 20px #00f3ff;
    margin-bottom: 6px;
    font-family: "Courier New", monospace;
}

@media (max-width: 720px) {
    .neon-echo-wrap {
        min-height: calc(100vh - 160px);
        padding: 12px;
    }

    .neon-echo-game {
        aspect-ratio: 3 / 4;
        min-height: min(620px, calc(100vh - 190px));
    }

    .neon-level-title {
        font-size: 18px;
    }
}

.neon-status {
    display: inline-block;
    font-size: 14px;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: "Courier New", monospace;
}

.neon-overlay {
    position: absolute;
    inset: 0;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
    z-index: 100;
    transition: opacity 1.2s;
    pointer-events: none;
    opacity: 1;
}

.neon-overlay.hidden {
    opacity: 0;
}

.neon-brand {
    font-size: 24px;
    letter-spacing: 5px;
    color: #d400ff;
    text-shadow: 0 0 10px #d400ff;
    font-family: "Courier New", monospace;
}

.neon-sub {
    font-size: 12px;
    margin-top: 10px;
    opacity: 0.75;
    font-family: "Courier New", monospace;
}
