/* --------------------------------------------
   WRAPPER + HEADERS
-------------------------------------------- */
.bcar-wrapper {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 1.5rem;
    border-radius: 14px;
    background: #f3fafb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bcar-title {
    text-align: center;
    margin-bottom: 0.25rem;
    color: #00587c;
    font-size: 1.6rem;
    font-weight: 700;
}

.bcar-subtitle {
    text-align: center;
    margin-bottom: 1rem;
    color: #15596b;
    font-size: 0.95rem;
}

/* HUD */
.bcar-hud {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.bcar-hud-item {
    font-weight: 600;
    color: #024;
}

/* Optional difficulty bar (if you kept the buttons) */
.bcar-difficulty-select {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #024;
}

.bcar-diff-btn {
    border: 1px solid #00587c;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    background: #ffffff;
    color: #00587c;
    font-size: 0.8rem;
    cursor: pointer;
}

.bcar-diff-btn.active {
    background: #00587c;
    color: #ffffff;
}

/* --------------------------------------------
   GAME AREA – SKY + GROUND
-------------------------------------------- */
.bcar-game-area {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 260px;
    background: linear-gradient(to top, #0b4d6b 0%, #1c7ea4 35%, #87d5ff 75%, #cbefff 100%);
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.05);
}

.bcar-ground {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50px;
    background: linear-gradient(to top, #34512b 0%, #4c7a3f 75%);
}

/* --------------------------------------------
   CRAB – NO BACKGROUND, JUST THE IMAGE
-------------------------------------------- */
.bcar-crab {
    position: absolute;
    width: 60px;
    height: 45px;
    z-index: 10;
    /* IMPORTANT: no background, no border, no circle */
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.bcar-crab-img {
    width: 60px;
    height: auto;
    display: block;
}

/* Hit flash */
.bcar-crab-hit .bcar-crab-img {
    animation: bcar-crab-flash 0.25s linear 2;
}

@keyframes bcar-crab-flash {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.7); }
}

/* --------------------------------------------
   FALLING OBJECTS
-------------------------------------------- */
.bcar-objects {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.bcar-object {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

/* Trash: reddish background */
.bcar-object-trash {
    background: #fde1e1;
    border: 2px solid #7b2222;
}

/* Plant: greenish background */
.bcar-object-plant {
    background: #dfffe2;
    border: 2px solid #1f7a3a;
}

/* Hit / Collect animations */
.bcar-object-hit {
    animation: bcar-object-hit 0.25s ease forwards;
}

@keyframes bcar-object-hit {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.5) rotate(-20deg); opacity: 0; }
}

.bcar-object-collected {
    animation: bcar-object-collected 0.3s ease forwards;
}

@keyframes bcar-object-collected {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3) translateY(-12px); opacity: 0; }
}

/* --------------------------------------------
   CONTROLS
-------------------------------------------- */
.bcar-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.bcar-btn {
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: #00587c;
    color: #ffffff;
}

.bcar-btn-secondary {
    background: #ffffff;
    color: #00587c;
    border: 1px solid #00587c;
}

/* --------------------------------------------
   FOOTER
-------------------------------------------- */
.bcar-footer-note {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    text-align: center;
    color: #567;
}

/* --------------------------------------------
   RESPONSIVE
-------------------------------------------- */
@media (max-width: 600px) {
    .bcar-wrapper {
        padding: 1.1rem;
    }

    .bcar-game-area {
        height: 240px;
    }

    .bcar-controls {
        flex-direction: column;
    }
}
