.wp-fb-wrapper {
    width: 100%;
    margin: 30px auto;
    max-width: 400px;
    box-sizing: border-box;
}

.wp-fb-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 600px;
    border: 4px solid #2c3e50;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    background-color: #70c5ce;
}

#wpFbCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

.wp-fb-ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
}

.wp-fb-screen {
    width: 85%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: wpFbPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
}

.wp-fb-hidden {
    display: none !important;
}

.wp-fb-title {
    font-size: 32px;
    margin: 0 0 15px 0;
    color: #e67e22;
    text-shadow: 2px 2px 0px #d35400, 3px 3px 0px rgba(0,0,0,0.1);
    font-weight: 900;
    letter-spacing: 1px;
}

.wp-fb-gameover-title {
    font-size: 32px;
    margin: 0 0 20px 0;
    color: #c0392b;
    text-shadow: 2px 2px 0px #962d22;
    font-weight: 900;
}

.wp-fb-bird-preview {
    width: 38px;
    height: 26px;
    background: #f1c40f;
    border: 2px solid #333;
    border-radius: 14px;
    margin: 0 auto 20px auto;
    position: relative;
    animation: wpFbBounce 0.6s infinite alternate ease-in-out;
}

.wp-fb-bird-preview::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    border: 1px solid #000;
}

.wp-fb-instructions {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.5;
}

.wp-fb-key {
    background: #e7e7e7;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 0 #bbb;
}

.wp-fb-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 5px 0 #27ae60;
    transition: all 0.1s ease;
    width: 100%;
    max-width: 200px;
}

.wp-fb-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #27ae60;
}

.wp-fb-score-board {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
}

.wp-fb-score-box {
    background: #f8f9fa;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    padding: 10px 20px;
    min-width: 80px;
}

.wp-fb-label {
    display: block;
    font-size: 11px;
    color: #95a5a6;
    font-weight: bold;
    margin-bottom: 5px;
}

.wp-fb-val {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.wp-fb-live-score {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 40px;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
    z-index: 5;
    pointer-events: none;
    display: none;
}

.mobile-only { display: none; }

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
}

@keyframes wpFbPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

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