/* 坦克大战 */

.game-root--battlecity { gap: 8px; }

.bc-hud {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 14px;
    padding: 4px 6px 8px;
    font-size: 10px;
    letter-spacing: .1em;
    color: #6f9a7d;
    border-bottom: 1px solid rgba(141, 240, 161, .14);
}

.bc-hud b {
    font-size: 13px;
    color: #c8f5d0;
}

.bc-hud__lives b { color: var(--gold); }

.bc-hud__cart {
    margin-left: auto;
    font-size: 8px;
    letter-spacing: .2em;
    color: #436b52;
}

.bc-field {
    position: relative;
    display: grid;
    place-items: center;
    padding: 6px 0;
}

#bc-canvas {
    display: block;
    width: min(100%, 430px);
    aspect-ratio: 1;
    height: auto;
    background: #050805;
    border: 2px solid #2a3d2e;
    border-radius: 3px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    box-shadow:
        0 0 0 1px #0c130d,
        0 0 34px rgba(141, 240, 161, .08),
        inset 0 0 24px #000;
    touch-action: none;
}

.bc-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: radial-gradient(circle at 50% 45%, rgba(4, 12, 7, .68), rgba(2, 6, 4, .92));
    transition: opacity .25s ease, visibility .25s;
}

.bc-overlay.is-off {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bc-overlay__box {
    width: min(360px, 100%);
    padding: 18px 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(16, 30, 20, .96), rgba(6, 12, 8, .98));
    border: 2px solid #375c42;
    border-radius: 8px;
    box-shadow: 0 0 0 4px rgba(141, 240, 161, .05), 0 18px 40px rgba(0, 0, 0, .7);
}

.bc-overlay__kicker {
    margin: 0 0 4px;
    font-size: 8.5px;
    letter-spacing: .28em;
    color: #57806a;
}

.bc-overlay h2 {
    margin: 0 0 8px;
    font-family: var(--font-hei);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .14em;
    color: var(--gold);
    text-shadow: 0 0 22px rgba(233, 185, 73, .25);
}

.bc-overlay p {
    margin: 0 0 14px;
    font-size: 10.5px;
    line-height: 1.8;
    color: #9db8a5;
}

.bc-overlay .pixel-btn { font-size: 11px; }

.bc-overlay__tip {
    margin: 12px 0 0 !important;
    font-size: 8.5px !important;
    letter-spacing: .06em;
    color: #5c7a65 !important;
}

.bc-touch {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 6px 2px;
}

.bc-dpad {
    display: grid;
    grid-template-columns: repeat(3, 42px);
    grid-template-rows: repeat(3, 42px);
    gap: 2px;
}

.bc-dpad button,
.bc-fire {
    font-family: var(--font-pixel);
    color: var(--cream);
    background: #18251c;
    border: 1px solid #33513d;
    border-radius: 4px;
    cursor: pointer;
    touch-action: manipulation;
}

.bc-dpad button { font-size: 12px; }

.bc-dpad [data-bc-dir="up"] { grid-area: 1 / 2; }
.bc-dpad [data-bc-dir="left"] { grid-area: 2 / 1; }
.bc-dpad [data-bc-dir="down"] { grid-area: 3 / 2; }
.bc-dpad [data-bc-dir="right"] { grid-area: 2 / 3; }

.bc-fire {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    color: #2a1208;
    background: radial-gradient(circle at 35% 30%, #ff9a7e, #c0392b 60%, #7d1a12);
    border: 2px solid #ffb59e;
    box-shadow: 0 4px 0 #5d110c;
}

@media (hover: none), (pointer: coarse) {
    .bc-touch { display: flex; }
}

@media (max-width: 480px) {
    .bc-hud { gap: 9px; font-size: 9px; }
    .bc-hud b { font-size: 11px; }
    .bc-hud__cart { display: none; }
    .bc-overlay h2 { font-size: 20px; }
    .bc-overlay__box { padding: 14px; }
    .bc-dpad { grid-template-columns: repeat(3, 36px); grid-template-rows: repeat(3, 36px); }
    .bc-fire { width: 56px; height: 56px; }
}
