.hangman-play, .brzi-play {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 0.25rem;
}

body.game-compact .container.my-2 {
    margin-top: 0.35rem !important;
    margin-bottom: 0.35rem !important;
}

.brzi-mute {
    display: block;
    margin: 0 auto 0.35rem;
    font-size: 0.8rem;
    padding: 0.2rem 0.55rem;
}

.brzi-card {
    background: #fff;
    border: 2px solid #222831;
    border-radius: 12px;
    color: #1a1a1a;
}
.brzi-card p, .brzi-card label { color: #222; }
.brzi-card h1, .brzi-card h2, .brzi-card .h3 { color: #0d2137; }

.hangman-play .brzi-title, .brzi-play .brzi-title {
    font-size: 1.2rem;
    margin: 0.2rem 0 0.35rem;
    min-height: 0 !important;
    color: #ffe066 !important;
}

.hangman-play .brzi-opis, .brzi-play .brzi-opis,
.hangman-play .brzi-hint, .brzi-play .brzi-hint {
    padding: 0.3rem 0.55rem;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
    .brzi-play .brzi-hint {
        padding: 0.25rem 0.45rem;
        font-size: 0.82rem;
        margin-bottom: 0.25rem;
    }
}

.hangman-play .brzi-img-wrap, .brzi-play .brzi-img-wrap {
    text-align: center;
    margin-bottom: 0.2rem;
}

.hangman-play .brzi-img, .brzi-play .brzi-img {
    width: 28vw;
    max-width: 110px;
    height: auto;
}

.hangman-play .brzi-word, .brzi-play .brzi-word {
    font-size: clamp(1.2rem, 5.5vw, 1.7rem);
    letter-spacing: 0.14em;
    text-align: center;
    margin: 0.25rem 0 0.4rem;
    line-height: 1.25;
    word-break: break-word;
}

.brzi-keyboard {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.35rem;
    margin: 0.2rem 0 0.4rem;
    width: 100%;
}

.brzi-keyboard .brzi-key {
    width: 100%;
    min-width: 0 !important;
    min-height: 2.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.1rem;
    margin: 0 !important;
    line-height: 1.1;
    touch-action: manipulation;
}

.brzi-keyboard .brzi-key.brzi-key-wide {
    font-size: 0.95rem;
    grid-column: span 1;
}

.brzi-keyboard .brzi-key.brzi-key-wrong {
    background-color: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
}

.brzi-wrong { text-align: center; margin-top: 0.25rem; font-size: 0.9rem; }
.brzi-wrong-list { color: #dc3545; font-size: 1.05rem; }

.hangman-extra-links {
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}
.hangman-extra-links .btn {
    font-size: 0.85rem;
    margin: 0.2rem;
}

@media (max-width: 400px) {
    .brzi-keyboard {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.3rem;
    }
    .brzi-keyboard .brzi-key {
        min-height: 2.6rem;
        font-size: 1rem;
    }
    .hangman-play .brzi-img, .brzi-play .brzi-img {
        max-width: 96px;
        width: 26vw;
    }
}

@media (min-width: 768px) {
    .hangman-play .brzi-img, .brzi-play .brzi-img {
        max-width: 160px;
        width: 160px;
    }
    .brzi-keyboard {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 0.4rem;
    }
    .brzi-keyboard .brzi-key {
        min-height: 3rem;
        font-size: 1.15rem;
    }
}

/* Tablice — mobilni */
.tablica-igra h1 {
    font-size: 1.2rem !important;
    min-height: 0 !important;
    padding: 0.4rem 0.5rem !important;
    margin: 0.35rem 0 0.5rem !important;
    line-height: 1.25 !important;
}
.tablica-igra .tablica-lead {
    font-size: 0.95rem;
    margin-bottom: 0.75rem !important;
}
.tablica-igra #tablica-zadatak {
    padding: 0.75rem !important;
}
.tablica-igra .tablica-promo {
    display: none;
}
@media (min-width: 768px) {
    .tablica-igra .tablica-promo {
        display: block;
    }
    .tablica-igra h1 {
        font-size: 1.5rem !important;
    }
}
@media (max-width: 767.98px) {
    .tablica-igra .tablica-lead {
        display: none;
    }
    .tablica-igra img[alt*="jabuka"],
    .tablica-igra img[alt*="Jabuka"],
    .tablica-igra img[src*="apple"] {
        height: 36px !important;
        width: 36px !important;
    }
}

/* Memorija — mobilni fallback */
@media (max-width: 575.98px) {
    .game-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        width: min(96vw, 420px) !important;
    }
}

body.game-compact .container {
    max-width: 100%;
}
