:root {
    --tlo: #10240f;
    --tlo2: #1d3d17;
    --tekst: #e9f5df;
    --przygaszony: #a9c49b;
    --akcent: #7bd23c;
    --akcent-ciemny: #4f9a1c;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--tlo);
    color: var(--tekst);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--akcent); }

.ladowanie {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-size: 1.4rem;
    color: var(--przygaszony);
}

/* ---- Strona startowa ---- */
.start {
    max-width: 40rem;
    margin: 0 auto;
    padding: 4rem 1rem 2rem;
    text-align: center;
}

.start h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin: 0 0 1rem;
    letter-spacing: 0.05em;
}

.opis {
    color: var(--przygaszony);
    line-height: 1.5;
}

.graj {
    display: inline-block;
    margin: 2rem 0;
    padding: 0.9rem 3rem;
    border-radius: 0.5rem;
    background: var(--akcent);
    color: #0d1f08;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 0 var(--akcent-ciemny);
}

.graj:hover { filter: brightness(1.1); }
.graj:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--akcent-ciemny); }

.sterowanie {
    text-align: left;
    background: var(--tlo2);
    border-radius: 0.5rem;
    padding: 0.5rem 1.5rem 1rem;
}

.sterowanie h2 { font-size: 1.1rem; }
.sterowanie li { margin: 0.3rem 0; color: var(--przygaszony); }
.sterowanie b { color: var(--tekst); }

footer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--przygaszony);
}

/* ---- Strona gry: płótno na cały ekran ---- */
.plotno {
    position: fixed;
    inset: 0;
    background: #000;
}

#theCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    outline: none;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

/* ---- Blazor error UI ---- */
#blazor-error-ui {
    background: #fff3c4;
    color: #222;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
