/**
 * Chim Bay Game - Styles
 * Version: 1.0.0
 */

/* ==================== GAME WRAPPER ==================== */
.cbg-game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    font-family: 'Nunito', sans-serif;
}

.cbg-game-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(28px, 6vw, 48px);
    color: #FFE66D;
    text-shadow: 
        3px 3px 0 #FF6B6B,
        6px 6px 0 rgba(0,0,0,0.2);
    letter-spacing: 2px;
    animation: cbgTitleBounce 2s ease-in-out infinite;
    margin: 0 0 15px 0;
}

@keyframes cbgTitleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ==================== GAME CONTAINER ==================== */
.cbg-game-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 0 0 4px #FFE66D,
        0 0 0 8px #FF6B6B,
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 0 100px rgba(255,255,255,0.1);
}

#cbgGameCanvas {
    display: block;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 100%);
}

/* ==================== SCORE DISPLAY ==================== */
.cbg-score-display {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Fredoka One', cursive;
    font-size: clamp(36px, 8vw, 56px);
    color: white;
    text-shadow: 
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        0 4px 8px rgba(0,0,0,0.3);
    z-index: 10;
    pointer-events: none;
}

.cbg-high-score {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Nunito', sans-serif;
    font-size: clamp(14px, 3vw, 18px);
    color: #FFE66D;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    z-index: 10;
    pointer-events: none;
    opacity: 0.9;
}

/* ==================== OVERLAYS ==================== */
.cbg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 20;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.cbg-overlay.cbg-hidden {
    opacity: 0;
    pointer-events: none;
}

.cbg-overlay-content {
    text-align: center;
    color: white;
    padding: 15px 20px;
    margin-top: -80px;
    max-height: calc(100% - 70px);
    overflow-y: auto;
}

.cbg-overlay-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(28px, 6vw, 42px);
    margin-bottom: 10px;
    color: #FFE66D;
    text-shadow: 3px 3px 0 #FF6B6B;
}

.cbg-overlay-score {
    font-size: clamp(18px, 4vw, 24px);
    margin-bottom: 5px;
}

.cbg-overlay-highscore {
    font-size: clamp(14px, 3vw, 18px);
    color: #FFE66D;
    margin-bottom: 15px;
}

.cbg-new-record {
    display: inline-block;
    background: #FF6B6B;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-left: 10px;
    animation: cbgPulse 0.5s ease-in-out infinite alternate;
}

.cbg-new-record.cbg-hidden {
    display: none;
}

@keyframes cbgPulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* ==================== BUTTONS ==================== */
.cbg-play-btn {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(16px, 3.5vw, 22px);
    padding: 12px 35px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(180deg, #4ECDC4 0%, #3BA99C 100%);
    color: white;
    cursor: pointer;
    box-shadow: 
        0 5px 0 #2E8B84,
        0 8px 15px rgba(0,0,0,0.3);
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
}

.cbg-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 0 #2E8B84,
        0 12px 25px rgba(0,0,0,0.35);
}

.cbg-play-btn:active {
    transform: translateY(4px);
    box-shadow: 
        0 2px 0 #2E8B84,
        0 5px 10px rgba(0,0,0,0.3);
}

/* ==================== INSTRUCTIONS ==================== */
.cbg-instructions {
    margin-top: 15px;
    font-size: clamp(12px, 2.5vw, 16px);
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

.cbg-instructions span {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 5px;
    margin: 0 3px;
}

.cbg-controls-info {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.cbg-control-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(11px, 2vw, 14px);
    color: rgba(255,255,255,0.7);
}

.cbg-control-key {
    background: rgba(255,255,255,0.15);
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

/* ==================== SETTINGS PANEL ==================== */
.cbg-settings-panel {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.cbg-settings-title {
    font-size: 14px;
    color: #FFE66D;
    margin-bottom: 10px;
    font-weight: 800;
}

.cbg-difficulty-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cbg-diff-btn {
    padding: 8px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.cbg-diff-btn:hover {
    background: rgba(255,255,255,0.1);
}

.cbg-diff-btn.active {
    background: #4ECDC4;
    border-color: #4ECDC4;
}

/* ==================== SOUND TOGGLE ==================== */
.cbg-sound-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    z-index: 30;
    transition: all 0.2s ease;
}

.cbg-sound-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* ==================== MEDAL ==================== */
.cbg-medal {
    width: 50px;
    height: 50px;
    margin: 10px auto;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.cbg-medal-bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); }
.cbg-medal-silver { background: linear-gradient(135deg, #C0C0C0, #808080); }
.cbg-medal-gold { background: linear-gradient(135deg, #FFD700, #FFA500); }
.cbg-medal-platinum { background: linear-gradient(135deg, #E5E4E2, #A8A9AD); }

/* ==================== AD BANNER WITH SHINE EFFECT ==================== */
.cbg-ad-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(90deg, #FFB300 0%, #FFC107 50%, #FFD54F 100%);
    border-top: 3px solid #FF8F00;
    z-index: 25;
    overflow: hidden;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
}

/* ✨ Shine Effect */
.cbg-ad-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.4) 40%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.4) 60%,
        rgba(255, 255, 255, 0) 80%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: cbgShine 2.5s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.cbg-ad-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: cbgShine 2.5s ease-in-out infinite;
    animation-delay: 0.3s;
    z-index: 1;
    pointer-events: none;
}

@keyframes cbgShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 150%;
    }
}

.cbg-ad-link {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #5D4037;
    padding: 0 15px;
    gap: 12px;
    transition: all 0.2s ease;
}

.cbg-ad-link:hover {
    background: rgba(255,255,255,0.2);
    text-decoration: none;
    color: #5D4037;
}

.cbg-ad-link:active {
    transform: scale(0.98);
}

.cbg-ad-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFE082 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 2px solid #FF8F00;
    flex-shrink: 0;
}

.cbg-ad-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cbg-ad-title {
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
    color: #E65100;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
    letter-spacing: 1px;
}

.cbg-ad-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    color: #795548;
    font-weight: 600;
}

.cbg-ad-arrow {
    font-size: 24px;
    color: #E65100;
    font-weight: bold;
    animation: cbgArrowBounce 1s ease-in-out infinite;
}

@keyframes cbgArrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 480px) {
    .cbg-game-wrapper {
        padding: 10px;
        gap: 10px;
    }
    
    .cbg-game-container {
        border-radius: 15px;
    }
    
    .cbg-overlay-content {
        padding: 20px;
    }
    
    .cbg-controls-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .cbg-ad-banner {
        height: 50px;
    }
    
    .cbg-ad-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .cbg-ad-title {
        font-size: 14px;
    }
    
    .cbg-ad-subtitle {
        font-size: 10px;
    }
    
    .cbg-ad-arrow {
        font-size: 20px;
    }
}

/* ==================== LEVEL UP NOTIFICATION ==================== */
@keyframes cbgLevelUpAnim {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    40% {
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -80%) scale(0.8);
    }
}

.cbg-level-up-notification {
    box-shadow: 0 5px 30px rgba(255, 215, 0, 0.5);
}

/* ==================== BIRD LEVEL DISPLAY ==================== */
.cbg-bird-level {
    font-size: clamp(14px, 3vw, 16px);
    color: #FFE66D;
    margin-top: 3px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cbg-bird-level-label {
    font-size: clamp(11px, 2.5vw, 13px);
    color: rgba(255,255,255,0.7);
    margin-top: 5px;
    margin-bottom: 0;
}

/* ==================== LEVEL INDICATOR IN GAME ==================== */
.cbg-level-indicator {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.3);
    padding: 5px 15px;
    border-radius: 20px;
    z-index: 10;
    pointer-events: none;
}

/* ==================== BUTTONS GROUP ==================== */
.cbg-buttons-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.cbg-buttons-group .cbg-play-btn {
    margin-top: 0;
}

/* ==================== SHARE FACEBOOK BUTTON ==================== */
.cbg-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Fredoka One', cursive;
    font-size: clamp(14px, 3vw, 18px);
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(180deg, #1877F2 0%, #0D5CBF 100%);
    color: white;
    cursor: pointer;
    box-shadow: 
        0 5px 0 #0A4A9E,
        0 8px 15px rgba(0,0,0,0.3);
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cbg-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 0 #0A4A9E,
        0 12px 25px rgba(0,0,0,0.35);
    background: linear-gradient(180deg, #2196F3 0%, #1877F2 100%);
}

.cbg-share-btn:active {
    transform: translateY(4px);
    box-shadow: 
        0 2px 0 #0A4A9E,
        0 5px 10px rgba(0,0,0,0.3);
}

.cbg-fb-icon {
    flex-shrink: 0;
}

/* ==================== SHARE SUCCESS NOTIFICATION ==================== */
.cbg-share-success {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.95), rgba(13, 92, 191, 0.95));
    color: white;
    padding: 20px 40px;
    border-radius: 15px;
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
    text-align: center;
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    animation: cbgSharePopup 2s ease-out forwards;
}

@keyframes cbgSharePopup {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    30% {
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
}

/* Responsive cho buttons group */
@media (max-width: 400px) {
    .cbg-buttons-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .cbg-share-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* ==================== REVIVE OVERLAY ==================== */
.cbg-revive-content {
    margin-top: -40px;
}

.cbg-revive-icon {
    font-size: 50px;
    margin-bottom: 10px;
    animation: cbgShake 0.5s ease-in-out;
}

@keyframes cbgShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px) rotate(-5deg); }
    75% { transform: translateX(10px) rotate(5deg); }
}

.cbg-revive-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(24px, 5vw, 32px);
    color: #FF6B6B;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
    margin-bottom: 5px;
}

.cbg-revive-score {
    font-size: clamp(16px, 3.5vw, 20px);
    margin-bottom: 15px;
}

.cbg-revive-offer {
    background: linear-gradient(135deg, rgba(255,107,107,0.2), rgba(78,205,196,0.2));
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid rgba(255,255,255,0.3);
}

.cbg-revive-heart {
    font-size: 40px;
    animation: cbgHeartbeat 1s ease-in-out infinite;
}

@keyframes cbgHeartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cbg-revive-text {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(18px, 4vw, 24px);
    color: #FFE66D;
    margin: 10px 0 5px 0;
}

.cbg-revive-subtext {
    font-size: clamp(12px, 2.5vw, 14px);
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* ==================== REVIVE AD BANNER ==================== */
.cbg-revive-ad {
    margin: 15px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: cbgGlow 1.5s ease-in-out infinite alternate;
}

@keyframes cbgGlow {
    0% { box-shadow: 0 5px 20px rgba(255,215,0,0.3); }
    100% { box-shadow: 0 5px 30px rgba(255,215,0,0.6), 0 0 20px rgba(255,215,0,0.4); }
}

.cbg-revive-ad-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: linear-gradient(90deg, #FFB300 0%, #FFC107 50%, #FFD54F 100%);
    text-decoration: none;
    color: #5D4037;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.cbg-revive-ad-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: cbgShine 2s ease-in-out infinite;
}

.cbg-revive-ad-link:hover {
    text-decoration: none;
    filter: brightness(1.1);
}

.cbg-revive-ad-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFE082 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 2px solid #FF8F00;
    flex-shrink: 0;
}

.cbg-revive-ad-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cbg-revive-ad-title {
    font-family: 'Fredoka One', cursive;
    font-size: 16px;
    color: #E65100;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.cbg-revive-ad-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    color: #795548;
    font-weight: 600;
}

.cbg-revive-ad-bonus {
    background: #4CAF50;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-family: 'Fredoka One', cursive;
    font-size: 14px;
    box-shadow: 0 3px 0 #388E3C;
    animation: cbgBounce 1s ease-in-out infinite;
}

@keyframes cbgBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ==================== COUNTDOWN & SKIP ==================== */
.cbg-revive-countdown {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.cbg-revive-countdown strong {
    color: #FFE66D;
    font-size: 18px;
}

.cbg-skip-btn {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    padding: 8px 25px;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: rgba(255,255,255,0.7);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cbg-skip-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: rgba(255,255,255,0.5);
}

/* ==================== REVIVE SUCCESS ==================== */
.cbg-revive-success {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(76,175,80,0.95), rgba(56,142,60,0.95));
    color: white;
    padding: 25px 40px;
    border-radius: 20px;
    font-family: 'Fredoka One', cursive;
    font-size: 24px;
    text-align: center;
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    animation: cbgReviveSuccess 1.5s ease-out forwards;
}

.cbg-revive-success-icon {
    font-size: 50px;
    display: block;
    margin-bottom: 10px;
}

@keyframes cbgReviveSuccess {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    40% {
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
}

/* Responsive cho Revive */
@media (max-width: 400px) {
    .cbg-revive-ad-link {
        padding: 10px 12px;
    }
    
    .cbg-revive-ad-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .cbg-revive-ad-title {
        font-size: 14px;
    }
    
    .cbg-revive-ad-bonus {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* ==================== REVIVE READY OVERLAY ==================== */
.cbg-revive-ready-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 50;
    animation: cbgFadeIn 0.3s ease-out;
}

@keyframes cbgFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cbg-revive-ready-overlay.cbg-fade-out {
    animation: cbgFadeOut 0.3s ease-out forwards;
}

@keyframes cbgFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.cbg-revive-ready-content {
    text-align: center;
    color: white;
    padding: 25px 40px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(56, 142, 60, 0.9));
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: cbgPulseScale 1.5s ease-in-out infinite;
}

@keyframes cbgPulseScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.cbg-revive-ready-icon {
    font-size: 50px;
    margin-bottom: 10px;
    animation: cbgBirdFloat 1s ease-in-out infinite;
}

@keyframes cbgBirdFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cbg-revive-ready-text {
    font-family: 'Fredoka One', cursive;
    font-size: 28px;
    color: #FFE66D;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.cbg-revive-ready-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
}

.cbg-key-hint {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-family: 'Fredoka One', cursive;
    font-size: 14px;
    animation: cbgKeyPulse 1s ease-in-out infinite;
}

@keyframes cbgKeyPulse {
    0%, 100% { 
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1);
    }
    50% { 
        background: rgba(255, 255, 255, 0.4);
        transform: scale(1.05);
    }
}

.cbg-revive-ready-subtext {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Nút CHẠM ĐỂ BAY cho mobile */
.cbg-tap-to-continue {
    display: block;
    margin: 20px auto 0;
    padding: 15px 40px;
    font-family: 'Fredoka One', cursive;
    font-size: 20px;
    color: white;
    background: linear-gradient(180deg, #FF6B6B 0%, #EE5A5A 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 
        0 6px 0 #CC4545,
        0 10px 20px rgba(0,0,0,0.3);
    animation: cbgTapPulse 1s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes cbgTapPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 6px 0 #CC4545, 0 10px 20px rgba(0,0,0,0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 8px 0 #CC4545, 0 15px 30px rgba(0,0,0,0.35);
    }
}

.cbg-tap-to-continue:active {
    transform: translateY(4px) scale(0.98);
    box-shadow: 
        0 2px 0 #CC4545,
        0 5px 10px rgba(0,0,0,0.3);
}

/* Ẩn SPACE và "hoặc" trên mobile */
@media (max-width: 768px) {
    .cbg-desktop-only {
        display: none;
    }
    
    .cbg-revive-ready-hint {
        flex-direction: column;
        gap: 5px;
    }
}

/* Hiện SPACE trên desktop, ẩn nút CHẠM */
@media (min-width: 769px) {
    .cbg-tap-to-continue {
        display: none;
    }
}

/* Responsive cho Revive Ready */
@media (max-width: 400px) {
    .cbg-revive-ready-content {
        padding: 20px 30px;
    }
    
    .cbg-revive-ready-icon {
        font-size: 40px;
    }
    
    .cbg-revive-ready-text {
        font-size: 22px;
    }
    
    .cbg-key-hint {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .cbg-tap-to-continue {
        padding: 12px 30px;
        font-size: 16px;
    }
}
