/* ===== SKOŘÁPKÁŘ - HERNÍ STYLY ===== */
.cups-game {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    font-family: 'Cinzel', 'Mafia', serif;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.game-layout {
    display: flex;
    gap: 15px;
    min-height: 0;
    height: 100%;
    flex: 1;
}

.cups-game .left-panel,
.cups-game .right-panel {
    min-height: 0;
}

.cups-game .right-panel {
    justify-content: space-between;
    padding: 6px 0 0;
}

.cups-game .cups-container {
    flex: 1 1 auto;
    align-items: center;
    margin: 0;
    min-height: 0;
}

.cups-game .message-container {
    margin-top: auto;
}

/* ===== LEVÝ PANEL ===== */
.left-panel {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== VOLBA TYPU SÁZKY ===== */
.bet-type-section {
    width: 100%;
    margin-top: 2px;
}

.bet-type-buttons {
    display: flex;
    gap: 4px;
    justify-content: space-between;
}

.bet-type-btn {
    flex: 1;
    background: linear-gradient(145deg, #3a2a1c, #1e140e);
    border: 2px solid var(--border-color);
    border-radius: 18px;
    padding: 6px 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-color);
    font-weight: bold;
    font-size: 11px;
    box-shadow: inset 0 1px 0 rgba(255,215,140,0.2), 0 2px 3px #000;
    text-shadow: none !important;
}

.bet-type-btn .btn-icon {
    font-size: 18px;
    text-shadow: none !important;
}

.bet-type-btn .btn-text {
    font-size: 11px;
    text-transform: uppercase;
    text-shadow: none !important;
}

.bet-type-btn.active {
    background: linear-gradient(145deg, #b89b7a, #8a6a4a);
    color: #1a120b;
    border-color: #ffd700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 5px #000;
    text-shadow: none !important;
}

.bet-type-btn:hover:not(.active) {
    background: #5a4a3a;
    transform: translateY(-1px);
}

/* Sekce bankovky - 2-column grid pro lepší využití prostoru */
.bills-section, .keys-section, .angel-section {
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
}

.bills-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.keys-section, .angel-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bills-header {
    grid-column: 1 / -1;
    font-size: 13px;
    font-weight: bold;
    color: #ffd700;
    text-align: center;
    margin-bottom: 2px;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bill-row {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 2px;
    border-radius: 4px;
    transition: background 0.15s;
}

.bill-row:hover {
    background: rgba(184,155,122,0.15);
}

.bill-icon {
    width: 72px;
    height: 36px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bill-icon:hover {
    transform: scale(1.05);
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* ===== IKONY PRO KLÍČE A ŠTÍTY ===== */
.key-icon, .angel-icon {
    width: 60px;
    height: 30px;
    background: linear-gradient(145deg, #3a2a1c, #1e140e);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #ffd700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.key-icon:hover, .angel-icon:hover {
    transform: scale(1.05);
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.bill-controls {
    display: flex;
    gap: 3px;
    margin-left: auto;
}

.bill-control-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bill-control-btn.plus { border-color: #4caf50; }
.bill-control-btn.plus:hover { background: #4caf50; }
.bill-control-btn.minus { border-color: #f44336; }
.bill-control-btn.minus:hover { background: #f44336; }

.bet-section {
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 6px 8px;
    margin-top: 2px;
}

.bet-section.bet-update {
    animation: betPulse 0.4s ease;
    border-color: #ffd700;
    box-shadow: 0 0 15px #ffd700;
}

@keyframes betPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); background: rgba(255, 215, 0, 0.2); }
    100% { transform: scale(1); }
}

.bet-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.bet-label {
    font-weight: 700;
    font-size: 13px;
    color: #000000 !important;
    white-space: nowrap;
    text-shadow: none !important;
}

.bet-input-wrapper {
    flex: 1;
}

#cups-bet-amount {
    width: 100%;
    padding: 3px 5px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: 18px;
    background: rgba(0,0,0,0.4);
    color: #ffd700;
}

.bet-controls-group {
    display: flex;
    gap: 3px;
    margin-left: auto;
}

.reset-bet-btn, .allin-bet-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: rgba(0,0,0,0.3);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.allin-bet-btn {
    background: linear-gradient(145deg, #8b4513, #cd7f32);
    border-color: #ffd700;
    color: #ffd700;
    font-size: 16px;
}

.reset-bet-btn:hover {
    transform: rotate(180deg);
    border-color: #ffd700;
    color: #ffd700;
}

.allin-bet-btn:hover {
    transform: scale(1.1);
    background: #ffd700;
    color: #8b4513;
    border-color: #8b4513;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 3px;
}

#cups-shuffle-btn {
    background: linear-gradient(145deg, #8b5a2b, #a67c52);
    border: 2px solid #d4a574;
    color: #ffd700;
    font-size: 18px;
    padding: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    width: 100%;
    margin-bottom: 3px;
}

/* ===== PRAVÝ PANEL - KELÍMKY ===== */
.right-panel {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 0 0 0;
}

.cups-container {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
    margin: 10px 0;
    flex-wrap: wrap;
    perspective: 600px;
    min-height: 280px;
    width: 100%;
    transition: filter .22s ease, transform .22s ease;
}

.cups-container.shuffle-active {
    filter: drop-shadow(0 0 18px rgba(255, 215, 95, 0.45));
}

.cups-container.chaos-shake {
    animation: cupsChaosShake .28s linear infinite;
}

@keyframes cupsChaosShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
}

.cup-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.cup {
    width: 210px;
    height: 210px;
    background-image: url('../../images/cup.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform-origin: bottom center;
    z-index: 10;
    filter: drop-shadow(0 14px 7px rgba(0,0,0,0.5));
}

.cup:hover:not(.disabled):not(.revealed):not(.raised) {
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 18px 10px rgba(0,0,0,0.5));
}

/* NOVÝ STAV PRO ZVEDNUTÝ KELÍMEK */
.cup.raised {
    transform: translateY(-40px) scale(1.1);
    filter: drop-shadow(0 20px 15px rgba(0,0,0,0.7));
    z-index: 20;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cup.selected {
    transform: translateY(-6px) scale(1.02);
    filter: drop-shadow(0 15px 8px rgba(0,0,0,0.5)) brightness(1.2);
    z-index: 15;
}

.cup.revealed {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 6px 4px rgba(0,0,0,0.5));
    cursor: default;
    z-index: 5;
    opacity: 0.9;
}

.cup.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Kulička pod kelímkem - posunuta dolů, aby byla lépe vidět, když je kelímek zvednutý */
.ball-indicator {
    position: absolute;
    bottom: -40px; /* Posunuto dolů z -20px */
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s;
    z-index: 5;
}

.ball-hidden {
    opacity: 0;
    visibility: hidden;
}

.ball-win {
    background-image: url('../../images/winBall.png');
    filter: drop-shadow(0 0 8px gold);
}

.ball-lose {
    background-image: url('../../images/loseBall.png');
    filter: drop-shadow(0 0 5px #333333);
}

.cup-label {
    font-size: 16px;
    background: rgba(0,0,0,0.5);
    padding: 3px 12px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin-top: 15px; /* Zvýšeno z 10px */
    color: var(--text-color);
    font-weight: bold;
}

/* ===== ANIMACE ===== */
@keyframes liftCup {
    0% { transform: translateY(0); }
    30% { transform: translateY(-45px) scale(1.15); }
    70% { transform: translateY(-45px) scale(1.15); }
    100% { transform: translateY(0); }
}

.cup.lifting {
    animation: liftCup 0.5s ease-in-out forwards;
    z-index: 20;
}

@keyframes wildShake1 {
    0% { transform: translateX(0) rotate(0deg); }
    20% { transform: translateX(-25px) rotate(-12deg) scale(1.1); }
    40% { transform: translateX(25px) rotate(12deg) scale(1.1); }
    60% { transform: translateX(-15px) rotate(-8deg) scale(1.05); }
    80% { transform: translateX(15px) rotate(8deg) scale(1.05); }
    100% { transform: translateX(0) rotate(0deg); }
}

@keyframes wildShake2 {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-35px) rotate(-6deg) scale(1.15); }
    50% { transform: translateY(0) rotate(6deg) scale(1.1); }
    75% { transform: translateY(-25px) rotate(-4deg) scale(1.1); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes wildShake3 {
    0% { transform: translateX(0) scale(1); }
    33% { transform: translateX(-20px) scale(1.1) rotate(-10deg); }
    66% { transform: translateX(20px) scale(1.1) rotate(10deg); }
    100% { transform: translateX(0) scale(1); }
}

.cup.shake-1 { animation: wildShake1 0.58s ease-in-out 4; }
.cup.shake-2 { animation: wildShake2 0.58s ease-in-out 4; }
.cup.shake-3 { animation: wildShake3 0.58s ease-in-out 4; }

@keyframes colorPulse {
    0% { filter: brightness(1) drop-shadow(0 12px 6px rgba(0,0,0,0.5)); }
    50% { filter: brightness(1.5) drop-shadow(0 12px 6px rgba(0,0,0,0.5)) drop-shadow(0 0 15px gold); }
    100% { filter: brightness(1) drop-shadow(0 12px 6px rgba(0,0,0,0.5)); }
}

.cup.pulse {
    animation: colorPulse 0.3s ease-in-out infinite;
}

@keyframes winPulse {
    0% { filter: drop-shadow(0 12px 6px rgba(0,0,0,0.5)); }
    50% { filter: drop-shadow(0 12px 6px rgba(0,0,0,0.5)) drop-shadow(0 0 20px gold) drop-shadow(0 0 40px gold); }
    100% { filter: drop-shadow(0 12px 6px rgba(0,0,0,0.5)); }
}

.cup.win-glow {
    animation: winPulse 0.5s ease-in-out 3;
}

@keyframes loseFlash {
    0% { filter: drop-shadow(0 12px 6px rgba(0,0,0,0.5)); }
    50% { filter: drop-shadow(0 12px 6px rgba(0,0,0,0.5)) drop-shadow(0 0 20px #f44336) drop-shadow(0 0 40px #f44336); }
    100% { filter: drop-shadow(0 12px 6px rgba(0,0,0,0.5)); }
}

.cup.lose-effect {
    animation: loseFlash 0.3s ease-in-out 3;
}

.message-container {
    width: 100%;
    max-width: 380px;
    margin-top: 25px; /* Zvýšeno z 15px */
}

#cups-message {
    min-height: 55px;
    padding: 8px 18px;
    border: 3px solid var(--border-color);
    border-radius: 12px;
    background: rgba(0,0,0,0.6);
    text-align: center;
    font-size: 18px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cups-message.win {
    border-color: #4caf50;
    background: rgba(0, 30, 0, 0.7);
    color: #4caf50;
    font-size: 20px;
}

#cups-message.lose {
    border-color: #f44336;
    background: rgba(30, 0, 0, 0.7);
    color: #f44336;
    font-size: 20px;
}

/* ===== RESPONZIVITA ===== */
@media (max-width: 800px) {
    .game-layout {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        min-height: auto;
    }
    
    .left-panel {
        width: 100%;
        max-width: 300px;
    }
    
    .right-panel {
        width: 100%;
        gap: 15px;
    }
    
    .cup {
        width: 100px;
        height: 100px;
    }
    
    .cup.raised {
        transform: translateY(-35px) scale(1.1);
    }
    
    .ball-indicator {
        bottom: -35px;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 700px) {
    .cups-game {
        padding: 6px;
    }

    .game-layout {
        gap: 12px;
    }

    .left-panel,
    .right-panel {
        max-width: 100%;
    }

    .cups-container {
        gap: 12px;
        min-height: 170px;
    }

    .cup {
        width: 88px;
        height: 88px;
    }

    .cup.raised {
        transform: translateY(-30px) scale(1.08);
    }

    #cups-message {
        min-height: 56px;
        font-size: 16px;
        padding: 10px 12px;
    }
}

