.bcg-game-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    aspect-ratio: 16/9;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    background-size: contain; /* Change to 'cover' if you want edges cropped but fully filled */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
    cursor: url('../assets/cursor.png') 16 16, auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    font-family: system-ui, -apple-system, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.bcg-hp-bar-container {
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 18px;
    background: rgba(0,0,0,0.6);
    border-radius: 9px;
    border: 2px solid #fff;
    overflow: hidden;
    z-index: 10;
}

.bcg-hp-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ee0000);
    transition: width 0.2s ease-out;
}

.bcg-hp-text {
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    text-shadow: 1px 1px 2px #000;
    z-index: 11;
    line-height: 18px;
}

.bcg-boss {
    position: absolute;
    bottom: 0%;
    left: 10%;
    width: 22%;
    height: auto;
    will-change: left, transform;
    animation: boss-move 8s ease-in-out infinite;
    z-index: 5;
    transform-style: preserve-3d;
    pointer-events: auto;
    cursor: url('../assets/cursor.png') 16 16, auto;
}

.bcg-boss img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
    transition: transform 0.1s;
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

.bcg-boss.clicked img {
    transform: scale(0.92);
}

@keyframes boss-move {
    0%   { left: 5%; }
    45%  { left: 80%; }
    50%  { left: 80%; }
    95%  { left: 5%; }
    100% { left: 5%; }
}

.bcg-dialogue {
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) !important;
    pointer-events: none;
    direction: ltr;
    unicode-bidi: plaintext;
    background: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    border: 2px solid #333;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: none;
}

.bcg-dialogue::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.bcg-dialogue.show { opacity: 1; }

.bcg-damage-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 15;
}

.bcg-damage {
    position: absolute;
    color: #ff0000;
    font-weight: 800;
    font-size: 1.5rem;
    text-shadow: 1px 1px 0 #fff;
    pointer-events: none;
    animation: damage-pop 0.8s ease-out forwards;
}

@keyframes damage-pop {
    0%   { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-60px) scale(1.3); opacity: 0; }
}
