@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@500;700&display=swap');

:root {
    --app-bg: #050505;
    --board-bg: #121212;

    --green-main: #00a74a;
    --green-light: #00ff73;

    --red-main: #9f0f17;
    --red-light: #ff0019;

    --yellow-main: #cca707;
    --yellow-light: #ffe600;

    --blue-main: #094a8f;
    --blue-light: #008cff;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--app-bg);
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    overflow: hidden;
}

.container {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    box-sizing: border-box;
}

.score-box {
    min-width: 100px;
    padding: 10px 25px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.score-box .label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
}

.score-box .value {
    margin-top: 5px;
    font-size: 28px;
    font-weight: 700;
}

.level {
    color: var(--green-light);
    text-shadow: 0 0 10px var(--green-light);
}

.highscore {
    color: var(--red-light);
    text-shadow: 0 0 10px var(--red-light);
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.game-title {
    font-size: 48px;
    margin: 0;
    letter-spacing: 4px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.game-text {
    font-style: italic;
    color: var(--blue-light);
    text-shadow: 0 0 20px var(--blue-light);
}

.simon-board {
    position: relative;
    width: 380px;
    height: 380px;
    padding: 15px;
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    border-radius: 50%;
    background: var(--board-bg);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.8),
        inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.btn {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    transition: 0.15s;
}

.btn:hover {
    filter: brightness(1.15);
}

.green {
    background: var(--green-main);
    border-top-left-radius: 100%;
}

.red {
    background: var(--red-main);
    border-top-right-radius: 100%;
}

.yello {
    background: var(--yellow-main);
    border-bottom-left-radius: 100%;
}

.blue {
    background: var(--blue-main);
    border-bottom-right-radius: 100%;
}

.flash {
    filter: brightness(2.2);
    box-shadow: 0 0 40px cyan, inset 0 0 20px white;
}

.center-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--board-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 15px var(--board-bg);
}

.center {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    cursor: pointer;
    background: radial-gradient(circle at 30% 30%, #333, #000);
    border: 2px solid #444;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.2);
    transition: 0.2s;
}

.center:hover {
    box-shadow:
        0 0 25px rgba(0, 140, 255, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.4);
}

.center:active {
    transform: scale(0.95);
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.8);
}

.start-text {
    font-size: 18px;
    font-weight: 700;
    color: #ccc;
    pointer-events: none;
}

@media (max-width: 500px) {
    .simon-board {
        width: 300px;
        height: 300px;
    }

    .center-ring {
        width: 110px;
        height: 110px;
    }

    .center {
        width: 80px;
        height: 80px;
    }

    .game-title {
        font-size: 34px;
    }
}