.bancopoly-app{--bcp-bg:#f4f1e6;--bcp-line:#0006;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;max-width:1200px;margin:0 auto;color:#222;}
.bancopoly-app *{box-sizing:border-box;}
.bcp-loading{padding:40px;text-align:center;color:#666;}

/* ---------- Lobby ---------- */
.bcp-lobby{max-width:460px;margin:20px auto;background:#fff;border:2px solid #222;border-radius:14px;padding:24px;box-shadow:0 4px 14px #0002;}
.bcp-lobby h2{margin-top:0;text-align:center;color:#0a6b3c;}
.bcp-lobby input{width:100%;padding:10px 12px;margin:6px 0 14px;border:2px solid #ccc;border-radius:8px;font-size:15px;}
.bcp-lobby label{font-weight:600;font-size:13px;color:#444;}
.bcp-tabs{display:flex;gap:8px;margin-bottom:16px;}
.bcp-tab{flex:1;padding:8px;text-align:center;border-radius:8px;background:#eee;cursor:pointer;font-weight:600;}
.bcp-tab.active{background:#0a6b3c;color:#fff;}
.bcp-btn{display:inline-block;padding:10px 18px;background:#0a6b3c;color:#fff;border:none;border-radius:8px;font-weight:700;cursor:pointer;font-size:15px;}
.bcp-btn:hover{background:#095c33;}
.bcp-btn.secondary{background:#c0392b;}
.bcp-btn.secondary:hover{background:#a5281a;}
.bcp-btn:disabled{background:#aaa;cursor:not-allowed;}
.bcp-btn-row{display:flex;gap:10px;flex-wrap:wrap;}
.bcp-error{color:#c0392b;font-weight:600;margin:8px 0;}
.bcp-code-badge{display:inline-block;background:#ffe58a;border:2px dashed #b8860b;border-radius:8px;padding:6px 14px;font-size:22px;font-weight:800;letter-spacing:3px;margin:10px 0;}

/* ---------- Sala de espera ---------- */
.bcp-players-list{list-style:none;padding:0;margin:10px 0;}
.bcp-players-list li{padding:8px 10px;border-bottom:1px solid #eee;display:flex;align-items:center;gap:10px;}
.bcp-token{font-size:22px;}

/* ---------- Layout de juego ---------- */
.bcp-game{display:grid;grid-template-columns:1fr 300px;gap:16px;align-items:start;}
@media (max-width:900px){.bcp-game{grid-template-columns:1fr;}}

.bcp-board-wrap{width:100%;overflow:auto;}
.bcp-board{display:grid;grid-template-columns:repeat(11,1fr);grid-template-rows:repeat(11,1fr);width:100%;aspect-ratio:1/1;min-width:660px;background:#8fd0e0;border:3px solid #222;border-radius:10px;}
.bcp-cell{border:1px solid var(--bcp-line);position:relative;font-size:9px;padding:3px;background:var(--bcp-bg);overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;}
.bcp-cell .name{font-weight:700;line-height:1.05;}
.bcp-cell .price{font-size:9px;color:#333;}
.bcp-cell .bar{height:8px;width:100%;border-radius:2px 2px 0 0;margin-bottom:2px;}
.bcp-center{grid-column:2/11;grid-row:2/11;display:flex;align-items:center;justify-content:center;background:#e6f4ea;border:2px dashed #0a6b3c;border-radius:8px;flex-direction:column;text-align:center;padding:10px;}
.bcp-center h3{margin:2px 0;color:#0a6b3c;}
.bcp-corner{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;text-align:center;background:#ffd9d9;}
.bcp-tokens-on-cell{position:absolute;top:2px;left:2px;display:flex;flex-wrap:wrap;gap:1px;}
.bcp-tokens-on-cell span{font-size:13px;}
.bcp-owned-dot{position:absolute;top:2px;right:2px;width:10px;height:10px;border-radius:50%;border:1px solid #0006;}
.bcp-building{position:absolute;bottom:1px;right:1px;font-size:9px;}

/* grupos de color */
.grp-altiplano{background:#8b5a2b;}
.grp-occidente{background:#7ec8e3;}
.grp-verapaces{background:#e35bbd;}
.grp-oriente{background:#f39c12;}
.grp-suroriente{background:#f4d03f;}
.grp-costa_sur{background:#27ae60;}
.grp-central{background:#e74c3c;}
.grp-capital{background:#2c3e50;}
.tipo-bolsa{background:#fff4c2;}
.tipo-cupon{background:#cfe8ff;}
.tipo-impuesto{background:#f5c6c6;}
.tipo-transporte{background:#dcd6f7;}
.tipo-servicio{background:#d6f5e3;}

/* ---------- Panel lateral ---------- */
.bcp-panel{background:#fff;border:2px solid #222;border-radius:10px;padding:14px;}
.bcp-panel h3{margin-top:0;}
.bcp-player-row{display:flex;align-items:center;gap:8px;padding:6px 4px;border-radius:6px;}
.bcp-player-row.current{background:#fff3c4;font-weight:700;}
.bcp-player-row.bankrupt{opacity:.4;text-decoration:line-through;}
.bcp-money{margin-left:auto;font-weight:700;color:#0a6b3c;}
.bcp-dice{font-size:34px;text-align:center;margin:10px 0;}
.bcp-log{height:180px;overflow-y:auto;background:#fafafa;border:1px solid #ddd;border-radius:6px;padding:8px;font-size:12.5px;margin-top:10px;}
.bcp-log div{margin-bottom:4px;}
.bcp-controls{display:flex;flex-direction:column;gap:8px;margin-top:10px;}
.bcp-card-banner{background:#fff9d6;border:2px solid #e6c200;border-radius:8px;padding:10px;margin:10px 0;font-size:13px;}

/* ---------- Modal ---------- */
.bcp-modal-backdrop{position:fixed;inset:0;background:#0008;display:flex;align-items:center;justify-content:center;z-index:9999;}
.bcp-modal{background:#fff;border-radius:12px;padding:24px;max-width:360px;width:90%;text-align:center;}
.bcp-modal h3{margin-top:0;}

.bcp-my-properties{margin-top:10px;font-size:12.5px;max-height:150px;overflow-y:auto;}
.bcp-my-properties .prop-row{display:flex;justify-content:space-between;align-items:center;padding:4px 0;border-bottom:1px solid #eee;}
.bcp-mini-btn{padding:2px 8px;font-size:11px;border-radius:5px;border:1px solid #0a6b3c;background:#fff;color:#0a6b3c;cursor:pointer;}
.bcp-mini-btn:hover{background:#0a6b3c;color:#fff;}
