:root {
    --bg-top: #100b14;
    --bg-bottom: #281629;
    --surface: rgba(25, 12, 28, 0.9);
    --surface-soft: rgba(39, 20, 45, 0.78);
    --text: #fff5f0;
    --text-soft: #e7cfc5;
    --accent: #ff7a1f;
    --accent-2: #ffcc66;
    --line: rgba(255, 122, 31, 0.45);
    --shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    padding: 20px 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Space Grotesk", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 14% 16%, rgba(255, 122, 31, 0.2), transparent 34%),
        radial-gradient(circle at 84% 10%, rgba(255, 204, 102, 0.18), transparent 34%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

header {
    width: min(1040px, 96vw);
    height: 240px;
    border-radius: 24px 24px 0 0;
    border: 3px solid var(--accent);
    border-bottom: none;
    box-shadow: var(--shadow);
    background-image:
        linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08)),
        url("../../assets/images/baniere.png");
    background-size: cover;
    background-position: center;
}

#section-1 {
    width: min(1040px, 96vw);
    border: 3px solid var(--accent);
    border-top: none;
    border-radius: 0 0 24px 24px;
    margin-bottom: 34px;
    padding: 24px 14px 28px;
    background: linear-gradient(160deg, rgba(21, 10, 27, 0.95), rgba(38, 16, 41, 0.9));
    box-shadow: var(--shadow);
    display: grid;
    justify-items: center;
}

.chess-shell {
    width: min(560px, 100%);
    display: grid;
    justify-items: center;
    gap: 10px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 18px 14px 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.badge {
    margin: 0;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 122, 31, 0.55);
    background: rgba(255, 122, 31, 0.14);
    color: #ffe2c0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 6px 0 0;
    font-family: "Cinzel", serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: #fff8ee;
    text-shadow:
        0 0 12px rgba(255, 122, 31, 0.55),
        0 0 20px rgba(255, 204, 102, 0.45);
}

.subtitle {
    margin: 0 0 6px;
    color: var(--text-soft);
    text-align: center;
}

.info-panel {
    width: min(420px, 100%);
    text-align: center;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 122, 31, 0.58);
    color: #ffe0b8;
    background: linear-gradient(180deg, rgba(43, 15, 17, 0.88), rgba(64, 21, 24, 0.82));
    font-size: 1.15rem;
    font-weight: 700;
}

#myBoard {
    width: 420px;
    max-width: 92vw;
    border-radius: 10px;
    border: 4px solid var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

#section-2 {
    width: min(420px, 100%);
    margin-top: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--surface-soft);
    padding: 10px 12px;
    text-align: center;
}

h2 {
    margin: 0 0 6px;
    font-family: "Cinzel", serif;
    color: var(--accent-2);
    font-size: 1.1rem;
}

#section-2 p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.white-1e1d7 {
    background-color: #f2d9c2 !important;
}

.black-3c85d {
    background-color: #57252d !important;
}

.highlight-white {
    background-color: #ff9d4a !important;
}

footer {
    width: min(1040px, 96vw);
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 12px;
    border-top: 3px solid var(--accent);
    display: flex;
    justify-content: center;
    background: rgba(29, 13, 32, 0.82);
}

#contact {
    margin: 0;
    color: #ffe9cf;
}

#contact a {
    color: #ffd3a0;
}

#contact a:hover {
    color: #ffe8ce;
}

@media (max-width: 720px) {
    header {
        height: 168px;
        border-radius: 18px 18px 0 0;
    }

    #section-1 {
        border-radius: 0 0 18px 18px;
        padding: 16px 8px 20px;
    }

    .chess-shell {
        padding: 12px 8px;
    }
}
