/* ============================================================================
   W33ZY EMPIRE — board game styles (Nov 22, 2026)
   High-tech dark HUD: glowing red, glass panels, big touch-friendly controls.
   ========================================================================== */

.em-shell .hud{ margin-bottom:12px; }
.em-rules{ margin:0 0 14px; }
.em-rules summary{ cursor:pointer; font-weight:800; color:#e53238; }
.em-rules ul{ margin:.6rem 0 0; padding-left:1.2rem; color:#c8d8e8; }
.em-rules li{ margin:.35rem 0; }

/* ---------- player cards ---------- */
.em-players{
  display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:14px;
}
.em-player{
  display:flex; gap:10px; align-items:center; padding:10px 12px;
  background:rgba(13,25,43,.72); border:1px solid #1d2c40; border-radius:12px;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.em-player.active{
  border-color:#e53238;
  box-shadow:0 0 16px rgba(229,50,56,.35), inset 0 0 0 1px rgba(229,50,56,.35);
}
.em-player.bankrupt{ opacity:.45; filter:grayscale(1); }
.em-avatar{ width:52px; height:52px; border-radius:50%; object-fit:cover; flex:none; }
.em-player .skull-slot{ padding:0; }
.em-pinfo{ display:flex; flex-direction:column; min-width:0; }
.em-pinfo b{ font-size:1rem; color:#e8f2fa; }
.em-you{ font-size:.65rem; color:#ffffff; background:#e53238; border-radius:6px; padding:1px 6px; margin-left:4px; vertical-align:middle; }
.em-cash{ font-size:1.05rem; font-weight:900; color:#e53238; }
.em-props{ color:#9fb4c8; font-size:.8rem; }
.em-jail{ display:none; font-size:.75rem; font-weight:800; color:#ffb020; }

/* ---------- board + side layout ---------- */
.em-layout{ display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:14px; align-items:start; }
.em-board-wrap{ min-width:0; }
.em-board{
  display:grid;
  grid-template-columns:repeat(11,1fr);
  grid-template-rows:repeat(11,1fr);
  gap:3px; aspect-ratio:1/1; width:100%; max-width:640px; margin:0 auto;
  background:#081120; border:1px solid #e5323833; border-radius:14px; padding:6px;
  box-shadow:0 0 30px rgba(229,50,56,.12);
}
.em-cell{
  position:relative; display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  background:#0d192b; border:1px solid #1d2c40; border-radius:6px;
  padding:2px; overflow:hidden; cursor:pointer; min-width:0;
}
.em-cell:hover{ border-color:#e53238; }
.em-cell.owned{ box-shadow:inset 0 0 0 2px var(--own,#e53238); }
.em-cell.em-corner{ background:#12233a; }
.em-cell.em-go{ background:#0e2a1a; }
.em-cell.em-gotojail{ background:#2a1214; }
.em-bar{ display:block; width:100%; height:7px; border-radius:3px; flex:none; }
.em-name{
  font-size:.58rem; font-weight:800; line-height:1.05; text-align:center; color:#dcebf7;
  overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  margin-top:2px;
}
.em-corner .em-name{ font-size:.68rem; }
.em-price{ font-size:.58rem; color:#9fb4c8; }
.em-tokens{ display:flex; flex-wrap:wrap; justify-content:center; gap:1px; margin-top:auto; }
.em-tok{ width:16px; height:16px; border-radius:50%; border:2px solid #e53238; object-fit:cover; background:#0a111c; }
.em-build{ font-size:.55rem; color:#ffd166; text-align:center; line-height:1; min-height:0; }
.em-space-info{ text-align:center; color:#9fb4c8; margin:.7rem 0 0; font-size:.9rem; }

/* ---------- side column ---------- */
.em-side{ display:flex; flex-direction:column; gap:12px; min-width:0; }
.em-controls{ display:flex; flex-wrap:wrap; gap:8px; }
.em-offer{
  background:rgba(229,50,56,.1); border:1px solid #e53238; border-radius:12px;
  padding:12px; line-height:1.5;
}
.em-offer .gbtn{ margin-top:8px; }
.em-log{
  height:300px; overflow-y:auto; padding:10px 12px; font-size:.88rem; line-height:1.45;
  background:rgba(8,17,32,.8); border:1px solid #1d2c40; border-radius:12px;
}
.em-log-line{ margin-bottom:5px; color:#c8d8e8; }
.em-log-line.em-who-0{ color:#7fe3f5; }
.em-log-line.em-who-1{ color:#ff8ba0; }
.em-log-line.em-who-2{ color:#c9a7ff; }
.em-log-line.em-who-3{ color:#7fe6ae; }

/* ---------- bottom panels ---------- */
.em-panels{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:14px; }
.em-panel{
  background:rgba(13,25,43,.72); border:1px solid #1d2c40; border-radius:12px; padding:14px;
}
.em-panel h3{ margin:0 0 10px; font-size:1.05rem; }
.em-muted{ color:#9fb4c8; font-size:.85rem; margin:.2rem 0 .8rem; }
.em-build-row{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  padding:8px 0; border-top:1px solid #1d2c40; font-size:.88rem;
}
.em-build-row:first-child{ border-top:0; }
.em-dot{ width:12px; height:12px; border-radius:50%; flex:none; }
.em-build-row .gbtn{ padding:.35rem .6rem; min-height:2rem; font-size:.8rem; }
.em-trade-form{ display:flex; flex-direction:column; gap:8px; }
.em-trade-form label{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:.9rem; }
.em-trade-form select, .em-trade-form input{
  background:#0a111c; color:#e8f2fa; border:1px solid #2c435f; border-radius:8px;
  padding:.45rem .6rem; font:inherit;
}

@media (max-width:900px){
  .em-layout{ grid-template-columns:1fr; }
  .em-players{ grid-template-columns:repeat(2,1fr); }
  .em-panels{ grid-template-columns:1fr; }
  .em-log{ height:220px; }
}
@media (max-width:520px){
  .em-name{ font-size:.5rem; }
  .em-price{ font-size:.5rem; }
  .em-tok{ width:12px; height:12px; }
  .em-avatar{ width:44px; height:44px; }
}
