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

:root {
    --bg: #080b14;
    --card: #121827;
    --text: #ffffff;
    --muted: #9ba4b6;
    --primary: #6c5ce7;
    --accent: #00d4ff;
    --border: rgba(255,255,255,0.08);
}

body {
    min-height: 100vh;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;

    background:
        radial-gradient(
            circle at top,
            rgba(108,92,231,0.18),
            transparent 40%
        ),
        var(--bg);

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}


/* HEADER */

.header {
    height: 70px;

    position: sticky;
    top: 0;
    z-index: 20;

    background: rgba(8,11,20,0.92);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(15px);
}

.header-inner {
    width: min(1000px, calc(100% - 30px));
    height: 100%;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 20px;
    font-weight: bold;
}

.logo span {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--accent)
    );
}

.logo strong {
    background: linear-gradient(
        90deg,
        #fff,
        #bdb9ff
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.back-btn {
    padding: 10px 15px;

    color: var(--muted);

    border: 1px solid var(--border);
    border-radius: 9px;

    font-size: 13px;
    font-weight: bold;
}

.back-btn:hover {
    color: white;
    background: rgba(255,255,255,0.06);
}


/* MAIN */

main {
    width: min(900px, calc(100% - 25px));
    margin: auto;

    padding: 55px 0 80px;
}


/* HEADING */

.heading {
    text-align: center;
    margin-bottom: 30px;
}

.label {
    margin-bottom: 10px;

    color: #9b93ff;

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 1.5px;
}

.heading h1 {
    font-size: clamp(34px, 6vw, 50px);
    margin-bottom: 10px;
}

.heading p {
    color: var(--muted);
    font-size: 14px;
}


/* GAME CARD */

.game-card {
    width: 100%;

    padding: 18px;

    background: #111827;

    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow:
        0 25px 70px rgba(0,0,0,0.35);
}


/* STATS */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    margin-bottom: 15px;
}

.stat {
    padding: 10px;

    text-align: center;

    background: rgba(255,255,255,0.04);

    border: 1px solid var(--border);
    border-radius: 10px;
}

.stat span {
    display: block;

    color: var(--muted);

    font-size: 9px;
    font-weight: bold;

    letter-spacing: 1px;
}

.stat strong {
    display: block;

    margin-top: 3px;

    font-size: 21px;
}


/* CANVAS */

.canvas-box {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: #080d18;

    border-radius: 14px;

    border: 1px solid rgba(255,255,255,0.1);
}

canvas {
    display: block;

    width: 100%;
    height: auto;

    touch-action: none;
}


/* OVERLAY */

.overlay {
    position: absolute;
    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 20px;

    background: rgba(5,10,20,0.82);

    backdrop-filter: blur(5px);
}

.hidden {
    display: none !important;
}

.big-icon {
    font-size: 55px;
    margin-bottom: 8px;
}

.overlay h2 {
    font-size: 28px;
    margin-bottom: 6px;
}

.overlay p {
    color: #dce2ed;

    font-size: 13px;

    margin-bottom: 10px;
}

.overlay button {
    margin-top: 12px;

    padding: 13px 22px;

    color: white;

    background: linear-gradient(
        135deg,
        var(--primary),
        #5144d7
    );

    border: none;
    border-radius: 10px;

    font-size: 13px;
    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(108,92,231,0.3);
}

.overlay button:hover {
    transform: translateY(-2px);
}


/* CONTROLS */

.controls {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 25px;

    margin-top: 13px;

    color: var(--muted);

    font-size: 11px;
}


/* INFO */

.info {
    max-width: 760px;

    margin: 60px auto 0;
}

.info h2 {
    margin-bottom: 12px;

    font-size: 23px;
}

.info p {
    margin-bottom: 30px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.8;
}

.info ul {
    padding-left: 20px;

    color: var(--muted);

    font-size: 14px;

    line-height: 2;
}


/* FOOTER */

footer {
    padding: 25px 15px;

    text-align: center;

    color: #697284;

    background: #060810;

    border-top: 1px solid var(--border);

    font-size: 11px;
}


/* MOBILE */

@media (max-width: 600px) {

    .header {
        height: 62px;
    }

    .logo {
        font-size: 18px;
    }

    .logo span {
        width: 32px;
        height: 32px;
    }

    .back-btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    main {
        padding-top: 40px;
    }

    .heading h1 {
        font-size: 34px;
    }

    .game-card {
        padding: 10px;
        border-radius: 15px;
    }

    .stats {
        gap: 6px;
    }

    .stat {
        padding: 8px 5px;
    }

    .stat strong {
        font-size: 18px;
    }

    .controls {
        gap: 12px;
        font-size: 10px;
    }

    .big-icon {
        font-size: 45px;
    }

    .overlay h2 {
        font-size: 23px;
    }

    .overlay p {
        font-size: 11px;
    }
}
