:root {
    --bg: #fff9c4;
    --blue: #29b6f6;
    --pink: #ff4081;
    --green: #66bb6a;
    --item-bg: rgba(255,255,255,0.5);
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Arial Rounded MT Bold', sans-serif;
    background: var(--bg);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.game-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    box-sizing: border-box;
    z-index: 4000;
}

.btn-home, .btn-restart {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 18px;
    border: 4px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-home img, .btn-restart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.score-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff9800;
}

#game-container {
    padding-top: 110px;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.instruction-bubble {
    background: white;
    padding: 15px 35px;
    border-radius: 40px;
    font-size: 1.8rem;
    color: #333;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
    border: 4px solid var(--blue);
    max-width: 90%;
}

#play-area {
    flex-grow: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 60px;
    position: relative;
}

/* Interaktivní položky */
.game-item {
    cursor: pointer;
    background: var(--item-bg);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    transition: background 0.3s, transform 0.2s;
    touch-action: none;
}

.game-item.active {
    background: white;
    box-shadow: 0 0 30px rgba(255, 64, 129, 0.4);
    transform: scale(1.02);
}

.game-item.correct {
    background: #c8e6c9;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.4);
}

.game-item span {
    display: block;
    line-height: 1;
    transition: font-size 0.05s linear;
}

/* Screeny */
.screen {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay-modal {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.btn-start {
    width: 160px;
    height: 160px;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-start img {
    border-radius: 35px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@media (orientation: landscape) {
    #play-area { flex-direction: row; }
}

@media (orientation: portrait) {
    #play-area { flex-direction: column; }
}
