* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --bg: #070b14;
    --panel: #101826;

    --cyan: #00e5ff;
    --cyan-dark: #00bcd4;

    --magenta: #ff00aa;
    --green: #00ff9f;

    --text: #d7e1ff;

    --square-dark: #182338;
    --square-light: #22304a;

    --danger: #ff3355;
}

body {

    width: 100vw;
    height: 100vh;

    background:
        radial-gradient(circle at top, #101c35, #070b14);

    font-family: Arial, sans-serif;
    color: var(--text);

    overflow: hidden;
}

#app {

    width: 100%;
    height: 100%;

    display: grid;

    grid-template-columns:
        280px
        1fr
        280px;
}

aside {

    background: rgba(10, 15, 25, 0.92);

    border-right:
        1px solid rgba(0, 229, 255, 0.25);

    padding: 20px;

    overflow-y: auto;
}

#right-panel {
    border-right: none;

    border-left:
        1px solid rgba(0, 229, 255, 0.25);
}

.logo {

    color: var(--cyan);

    font-size: 2rem;

    text-align: center;

    margin-bottom: 40px;

    text-shadow:
        0 0 10px var(--cyan);
}

.mobile-logo {
    display: none;
}

.panel-section {

    margin-bottom: 30px;
}

.panel-section h2 {

    font-size: 0.9rem;

    color: var(--cyan);

    margin-bottom: 10px;

    letter-spacing: 2px;
}

button,
select,
input {

    width: 100%;

    margin-bottom: 10px;

    padding: 12px;

    background: #162238;

    border: 1px solid rgba(0, 229, 255, 0.3);

    color: var(--text);

    cursor: pointer;

    transition: 0.2s;
}

button:hover {

    background: rgba(0, 229, 255, 0.15);

    box-shadow:
        0 0 12px rgba(0, 229, 255, 0.4);
}

#start-game-btn {

    background: rgba(0, 255, 159, 0.1);

    border-color: var(--green);

    color: var(--green);

    font-weight: bold;
}

#start-game-btn:hover {

    box-shadow:
        0 0 15px rgba(0,255,159,0.5);
}

.footer {
    margin-top: 18px;
    font-size: 11px;
    color: white;
    text-align: center;
}

/* Laptop */
@media (max-width: 1600px) {
    #app {
        grid-template-columns:
            230px
            1fr
            230px;
    }

    aside {
        padding: 14px;
    }

    .logo img {
        max-width: 180px;
        height: auto;
    }

    .footer {
        font-size: 10px;
    }
}

/* Tablet */
@media (max-width: 1100px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    #app {
        grid-template-columns: 1fr;
        grid-template-areas:
            "right"
            "center"
            "left";
    }

    #left-panel {
        grid-area: left;
        border-right: none;
        border-top: 1px solid rgba(0,229,255,.25);
    }

    #game-area {
    grid-area: center;

    padding-top: 24px;
    padding-bottom: 24px;
    }

    #right-panel {
        grid-area: right;
        border-left: none;
        border-bottom: 1px solid rgba(0,229,255,.25);
    }

    aside {
        max-height: none;
    }

    #app {
        grid-template-columns: 1fr;

        grid-template-areas:
            "mobile-logo"
            "right"
            "center"
            "left";
    }

    .footer {
        display: none;
    }

    .mobile-logo {
        grid-area: mobile-logo;

        display: flex;

        justify-content: center;
        align-items: center;

        width: 100%;

        padding:
            14px 10px
            8px;

        background:
            rgba(10, 15, 25, 0.92);
    }

    .mobile-logo img {
        display: block;

        width: auto;
        height: auto;

        max-width: 190px;
        max-height: 72px;
    }

    .logo {
        display: none;
    }
}

/* Phone */
@media (max-width: 700px) {
    .panel-section h2 {
        font-size: .75rem;
    }

    button,
    select,
    input {
        padding: 8px;
        font-size: .8rem;
    }

    #game-area {
    padding-top: 18px;
    padding-bottom: 18px;
    }

    .logo,
    .footer {
        display: none;
    }

    .mobile-logo {
        padding:
            10px 8px
            6px;
    }

    .mobile-logo img {
        max-width: 165px;
        max-height: 62px;
    }
}

@media (max-width: 900px) {
    #top-bar {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .timer {
        width: 120px;
        font-size: 1rem;
    }

    #game-area {
    padding-top: 18px;
    padding-bottom: 18px;
    }

    #top-bar {
    margin-top: 10px;
    }

    .logo,
    .footer {
        display: none;
    }

    #status-display {
        font-size: .9rem;
    }
}