:root {
  --bg: #0f1e38;
  --panel: #ffffff;
  --text: #11213b;
  --muted: #000000;
  --border: #d7dfec;
  --ok: #207a3e;
  --warn: #b23c3c;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: linear-gradient(120deg, #0f1e38, #1a3159);
  color: #f7f9ff;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
main {
  display: grid;
  grid-template-columns: minmax(980px, 2.5fr) minmax(320px, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  max-width: 1500px;
  margin: 0 auto;
  align-items: start;
}
.board {
  background: linear-gradient(145deg, #f8fbff, #dce7ff);
  border-radius: 18px;
  border: 2px solid #c3cde1;
  min-height: 920px;
  aspect-ratio: 1 / 1;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: .7rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: .45rem;
  box-shadow: 0 18px 36px rgba(8, 20, 46, .35);
}
.cell {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .62rem;
  font-size: .9rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(18, 40, 78, .1);
}
.cell .title { font-weight: 800; line-height: 1.25; font-size: 1rem; }
.cell .sub { color: var(--muted); font-size: .85rem; font-weight: 700; }
.cell .price {
  color: #0c2c6f;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .01em;
}
.cell-start { background: linear-gradient(165deg, #d9ffe5, #b6f7d1); }
.cell-street { background: linear-gradient(165deg, #ffffff, #f2f7ff); }
.cell-question { background: linear-gradient(165deg, #ffe7a7, #ffd675); }
.cell-creditPurchase { background: linear-gradient(165deg, #ffd3e2, #ffc1d6); }
.cell-loan { background: linear-gradient(165deg, #d5f4ff, #bfe9ff); }
.cell-sale { background: linear-gradient(165deg, #dfffe4, #c8f7d0); }
.cell-grant { background: linear-gradient(165deg, #f2e4ff, #e4d0ff); }
.cell-vatSettlement { background: linear-gradient(165deg, #ffe4e4, #ffcccc); }

.cell-center {
  border: 0;
  background: radial-gradient(circle at 20% 20%, #ffffff 0%, #e5eeff 45%, #c8d9ff 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.65);
  padding: .35rem;
}

.center-wrap {
  height: 100%;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.72);
  background: linear-gradient(180deg, #fefefe, #edf3ff);
}

.center-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tokens { display:flex; gap:.2rem; flex-wrap:wrap; }
.token {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,.23);
  transition: transform .22s ease;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.token.moving, .token:hover { transform: translateY(-4px) scale(1.15); }
.sidebar { background: rgba(255,255,255,.1); border-radius: 14px; padding: 1rem; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(2px); }
.team-card {
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: .75rem;
  margin-bottom: .75rem;
  box-shadow: 0 8px 18px rgba(14, 30, 60, .16);
}
.team-card label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: #36507e;
  margin-bottom: .3rem;
}
.team-card input { width: 100%; padding: .45rem .55rem; border-radius: 8px; border: 1px solid #cad7ef; margin-bottom: .45rem; font-weight: 600; }
.stat-grid { display:grid; grid-template-columns:1fr auto; gap:.42rem .55rem; font-size:.77rem; align-items:center; }
.stat-grid span { color: #324b76; font-weight: 700; }
.stat-grid abbr { text-decoration: none; border-bottom: 1px dotted #91a8d3; cursor: help; }
.money-big { font-size: .98rem; letter-spacing: .01em; }
.admin-panel { background:#fff; color:var(--text); border-radius:10px; padding:.8rem; margin-top:1rem; }
.admin-panel button { margin:.15rem 0; width:100%; }
.turno-wrap { display:flex; gap:1rem; align-items:center; }
button { border:0; border-radius:8px; padding:.55rem .7rem; cursor:pointer; }
#btn-dado { background: linear-gradient(180deg, #ffe282, #ffd45a); color:#1d2a44; font-weight:800; box-shadow: 0 8px 16px rgba(0,0,0,.2); }
dialog {
  width:min(900px,94vw);
  border:none;
  border-radius:12px;
  padding:0;
}
.modal-wrap { padding: 1rem; color: var(--text); }
.op-top { font-weight:700; margin-bottom:.6rem; }
.calc { background:#f0f4fd; border-radius:8px; padding:.6rem; margin:.6rem 0; }
.t-account { display:grid; grid-template-columns:1fr 1fr; border:2px solid #2a3d63; min-height:180px; }
.t-account > div { padding:.7rem; }
.t-account .left { border-right:2px solid #2a3d63; }
.placeholder { color:#6f7f9e; font-style:italic; margin-top:1rem; }
.actions { display:flex; gap:.5rem; margin-top:.8rem; flex-wrap:wrap; }
.warn { color:var(--warn); font-weight:700; }
.ok { color:var(--ok); font-weight:700; }
.ranking table { width:100%; border-collapse:collapse; }
.ranking th, .ranking td { border:1px solid #ced9ef; padding:.4rem; text-align:left; }
@media (max-width: 1050px) {
  main { grid-template-columns: 1fr; }
  .board {
    width: 100%;
    min-height: 760px;
  }
}
