/* Ludo — 15×15 cross board. Colors by seat: red / green / yellow / blue. */

:root {
  --ludo-red:    #e63946;
  --ludo-green:  #2a9d8f;
  --ludo-yellow: #e6b800;
  --ludo-blue:   #1d6fb6;
}

.ludo-banner {
  text-align: center;
  font-size: 1rem; font-weight: 600;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  margin: 12px 0;
  font-family: "Poppins", system-ui, sans-serif;
}

.ludo-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}
@media (max-width: 820px) {
  .ludo-layout { grid-template-columns: 1fr; }
  .souq-sidebar { order: 2; }
}

.ludo-board-wrap {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ludo-board {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 640px;
  background: #efe8d9;
  border: 3px solid #3a2115;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.ludo-cell {
  aspect-ratio: 1 / 1;
  min-width: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #efe8d9;
}
.ludo-cell.empty   { background: #efe8d9; border-color: transparent; }
.ludo-cell.base.c-red    { background: #fcd8dc; }
.ludo-cell.base.c-green  { background: #c3ece6; }
.ludo-cell.base.c-yellow { background: #fff2b3; }
.ludo-cell.base.c-blue   { background: #cce0f2; }
.ludo-cell.track { background: #ffffff; }
.ludo-cell.track.safe { background: #e8e8ff; }
.ludo-cell.track.safe::before {
  content: "★"; position: absolute; font-size: .7rem; opacity: .35;
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.ludo-cell.track.start.c-red    { background: var(--ludo-red);    }
.ludo-cell.track.start.c-green  { background: var(--ludo-green);  }
.ludo-cell.track.start.c-yellow { background: var(--ludo-yellow); }
.ludo-cell.track.start.c-blue   { background: var(--ludo-blue);   }
.ludo-cell.home-col.c-red    { background: var(--ludo-red);    opacity: .7; }
.ludo-cell.home-col.c-green  { background: var(--ludo-green);  opacity: .7; }
.ludo-cell.home-col.c-yellow { background: var(--ludo-yellow); opacity: .7; }
.ludo-cell.home-col.c-blue   { background: var(--ludo-blue);   opacity: .7; }
.ludo-cell.finish {
  background: radial-gradient(circle at center, #fff 0%, #ffd966 60%, #e6b800 100%);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
}

/* Tokens are placed on the same grid cells as their location. */
.ludo-token {
  width: 60%; height: 60%;
  border-radius: 50%;
  justify-self: center; align-self: center;
  font-size: .65rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  box-shadow:
    inset -2px -3px 4px rgba(0,0,0,0.35),
    0 2px 4px rgba(0,0,0,0.4);
  z-index: 2; pointer-events: auto;
  transition: transform .1s;
}
.ludo-token.c-red    { background: var(--ludo-red);    }
.ludo-token.c-green  { background: var(--ludo-green);  }
.ludo-token.c-yellow { background: var(--ludo-yellow); color: #111; }
.ludo-token.c-blue   { background: var(--ludo-blue);   }
.ludo-token.movable {
  cursor: pointer;
  outline: 3px solid #ffd700;
  animation: ludo-pulse 1.1s infinite ease-in-out;
}
@keyframes ludo-pulse {
  0%,100% { outline-offset: 0px; }
  50%     { outline-offset: 3px; }
}

.ludo-dice-wrap { display: flex; gap: 10px; align-items: center; }
.ludo-dice {
  width: 56px; height: 56px; border-radius: 10px;
  background: #fff; color: #111;
  font-family: "Menlo", monospace; font-weight: 800; font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.ludo-dice.six { background: #ffd966; color: #222; }
