:root {
    --bg-top: #f2efe8;
    --bg-bottom: #d9e8da;
    --panel: rgba(250, 255, 250, 0.9);
    --panel-strong: #e8f2e8;
    --ink: #1f2b22;
    --ink-soft: #425647;
    --accent: #d36a1d;
    --accent-dark: #9f4c10;
    --line: #b8c8b8;
    --shadow: 0 18px 38px rgba(37, 55, 36, 0.2);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 18%, rgba(211, 106, 29, 0.14), transparent 36%),
        radial-gradient(circle at 84% 14%, rgba(86, 138, 84, 0.15), transparent 34%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
    color: var(--ink);
    font-family: "Oxanium", sans-serif;
}

.snake-hero {
    width: min(980px, 94vw);
    height: 170px;
    margin: 18px auto 0;
    border-radius: 24px 24px 0 0;
    border: 2px solid var(--accent);
    border-bottom: none;
    background-image:
        linear-gradient(to top, rgba(8, 15, 9, 0.55), rgba(18, 35, 20, 0.2)),
        url("../../assets/images/img_snake/motif-serpend.jpg");
    background-size: cover;
    background-position: center;
}

.snake-page {
    width: min(980px, 94vw);
    margin: 0 auto 28px;
}

.game-container {
    border: 2px solid var(--accent);
    border-top: none;
    border-radius: 0 0 24px 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 18px;
    display: grid;
    justify-items: center;
    gap: 14px;
}

.title-wrap {
    text-align: center;
}

.title-wrap h1 {
    margin: 0;
    font-size: clamp(2rem, 4.8vw, 2.9rem);
    font-family: "Teko", sans-serif;
    letter-spacing: 0.04em;
    color: #1f3c24;
}

.title-wrap p {
    margin: 2px 0 0;
    color: var(--ink-soft);
    font-size: clamp(0.92rem, 2.3vw, 1.04rem);
}

#game-board {
    display: block;
    width: min(500px, 100%);
    height: auto;
    background-image: url("../../assets/images/img_snake/herbre.jpg");
    background-size: cover;
    border: 4px solid var(--accent);
    border-radius: 18px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.all-score {
    width: min(500px, 100%);
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 10px;
}

h3 {
    margin: 0;
    font-size: clamp(1rem, 2.3vw, 1.16rem);
    color: #24412a;
    font-family: "Teko", sans-serif;
    letter-spacing: 0.03em;
    font-weight: 700;
}

h3 span {
    display: inline-block;
    min-width: 28px;
    text-align: right;
    color: var(--accent-dark);
}

.reset {
    border: none;
    height: 42px;
    min-width: 92px;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-family: "Oxanium", sans-serif;
    font-weight: 700;
    background: linear-gradient(180deg, #e28337, var(--accent));
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.reset:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.controls-hint {
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

@media (max-width: 720px) {
    .snake-hero {
        height: 120px;
    }

    .game-container {
        padding: 14px 10px;
    }

    .all-score {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .reset {
        width: 100%;
    }
}


