/* Braquage — thème nuit / or + plans quadrillés */
.eg {
    --eg-card: rgba(12, 17, 32, 0.94);
    --eg-card-2: rgba(212, 175, 55, 0.05);
    --eg-text: var(--text-main);
    --eg-muted: var(--text-muted);
    --eg-accent: var(--gold);
    --eg-accent-ink: #05070f;
    --eg-border: var(--border-color);
    --eg-err: var(--laser-red);
    --eg-font-head: var(--font-heading);
    --eg-font-body: var(--font-body);
    --eg-font-mono: var(--font-mono);
}

.heist-status { font-family: var(--font-mono); color: var(--cctv-blue); margin-bottom: 0.5rem; }
.heist-board {
    display: grid;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    gap: 2px;
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 6px;
    background: #02040a;
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.08) inset;
    user-select: none;
    -webkit-user-select: none;
}
.hcell {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.8rem, 4.2vw, 1.6rem);
    line-height: 1;
    background: #18284a;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
}
.hcell.wall { background: repeating-linear-gradient(0deg, #05070d 0 6px, #0b0f1a 6px 7px); box-shadow: none; }
.hcell.cam { font-size: clamp(0.55rem, 2.6vw, 1rem); background: #262d40; }
.hcell.watched { background: rgba(255, 34, 68, 0.38); }
.hcell.next::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255, 34, 68, 0.55) 0 4px, transparent 4px 9px);
    pointer-events: none;
}
.hcell.laser.on { box-shadow: inset 0 0 0 2px var(--laser-red), 0 0 10px var(--laser-red); }
.hcell.laser.off { box-shadow: inset 0 0 0 1px rgba(255, 34, 68, 0.3); }
.hcell.reach { cursor: pointer; outline: 1px dashed rgba(212, 175, 55, 0.6); outline-offset: -2px; }
.hcell.reach:hover { background-color: rgba(212, 175, 55, 0.18); }
.hcell.me { background: rgba(212, 175, 55, 0.25); cursor: pointer; z-index: 1; }

.heist-pad {
    display: grid;
    grid-template-columns: 64px 104px 64px;
    grid-template-areas: ". n ." "w c e" ". s .";
    gap: 6px;
    justify-content: center;
    margin: 0.9rem auto 0.4rem;
}
.heist-pad button:nth-child(1) { grid-area: n; }
.heist-pad button:nth-child(2) { grid-area: w; }
.heist-pad button:nth-child(3) { grid-area: c; font-size: 0.8rem; padding: 0.4rem; }
.heist-pad button:nth-child(4) { grid-area: e; }
.heist-pad button:nth-child(5) { grid-area: s; }
.heist-pad .eg-btn { padding: 0.55rem 0; font-size: 1.15rem; }
.heist-legend { font-size: 0.82rem; text-align: center; line-height: 1.6; }
.lg-watched { background: rgba(255, 34, 68, 0.45); padding: 0 4px; border-radius: 3px; color: #fff; }
.lg-next { background: repeating-linear-gradient(45deg, rgba(255, 34, 68, 0.6) 0 3px, transparent 3px 7px); padding: 0 4px; border-radius: 3px; color: #fff; }

.final-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.final-choices h3 { font-family: var(--font-heading); color: var(--gold); margin: 0 0 0.3rem; }

@media (max-width: 720px) {
    .heist-board { gap: 1px; padding: 4px; }
    .final-choices { grid-template-columns: 1fr; }
}
