.adlg-root {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: inherit;
  color: var(--text);
}

.adlg-players {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adlg-player {
  flex: 1 1 160px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.adlg-player.adlg-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.adlg-player-name {
  font-weight: 600;
}

.adlg-player-stats {
  font-size: 0.85em;
  opacity: 0.85;
}

.adlg-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adlg-me {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--bg-soft);
}

.adlg-me-stats {
  font-weight: 600;
  margin-bottom: 6px;
}

.adlg-missions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adlg-mission {
  font-size: 0.9em;
  padding: 4px 6px;
  border-radius: 6px;
  background: transparent;
}

.adlg-mission-done {
  opacity: 0.6;
  text-decoration: line-through;
}

.adlg-banner {
  font-weight: 600;
  padding: 6px 0;
}

.adlg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.adlg-shop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.adlg-btn {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9em;
}

.adlg-btn:hover:not(:disabled) {
  background: var(--accent);
  color: var(--bg-soft);
}

.adlg-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.adlg-btn-primary {
  background: var(--accent);
  color: var(--bg-soft);
}

.adlg-btn-danger {
  border-color: #b33;
  color: #b33;
}

.adlg-btn-danger:hover:not(:disabled) {
  background: #b33;
  color: #fff;
}

.adlg-check {
  font-size: 0.85em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.adlg-log {
  border-top: 1px dashed var(--line);
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.adlg-log-line {
  font-size: 0.8em;
  opacity: 0.7;
}

/* ===================== PLATEAU VISUEL ===================== */
.adlg-boardwrap {
  width: 100%;
  overflow: auto;
  background: #1a120a;
  border: 1px solid #3a2a16;
  border-radius: 10px;
  padding: 6px;
}
.adlg-board {
  position: relative;
  margin: 0 auto;
  background:
    repeating-linear-gradient(0deg, rgba(160,110,60,.05) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, rgba(160,110,60,.05) 0 1px, transparent 1px 20px),
    #1a120a;
}
.adlg-paths { position: absolute; inset: 0; pointer-events: none; }
.adlg-paths line { stroke: rgba(170,120,60,.35); stroke-width: 2; }

.adlg-node {
  position: absolute;
  width: 18px; height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; line-height: 1;
  background: #241a10; border: 1.5px solid rgba(236,220,176,.16);
  color: #ecdcb0;
}
.adlg-node-icon { pointer-events: none; }
.adlg-t-m { background: #2a1608; border-color: #c9a227; width: 22px; height: 22px; color: #c9a227; }
.adlg-t-c { background: #141b0e; border-color: #7c9a5e; color: #7c9a5e; }
.adlg-t-s { background: #1f140a; border-color: #c97b3d; color: #c97b3d; }
.adlg-t-T { background: #16111c; border-color: #8b6fa3; color: #8b6fa3; }
.adlg-t-q { background: #1c1605; border-color: #4a8a86; width: 24px; height: 24px; color: #4a8a86; }
.adlg-t-B { background: #220705; border-color: #a13a2a; width: 28px; height: 28px; font-size: 13px; }

.adlg-node.blocked { background: #241008 !important; border-color: #a13a2a !important; opacity: .8; }
.adlg-node.target { box-shadow: 0 0 0 3px rgba(232,178,61,.55); }
.adlg-node.reachable {
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(236,220,176,.5), 0 0 12px rgba(236,220,176,.4);
  animation: adlg-pulse 1.1s ease-in-out infinite;
}
.adlg-node.reachable:hover { box-shadow: 0 0 0 4px #ecdcb0; }
@keyframes adlg-pulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.5); } }

.adlg-node-label {
  position: absolute;
  transform: translate(-50%, 0);
  font-size: 8px; font-weight: 700; white-space: nowrap;
  padding: 1px 4px; border-radius: 3px;
  background: rgba(26,16,8,.85); color: #d9a45c;
  pointer-events: none;
}
.adlg-lbl-B { color: #d9694a; } .adlg-lbl-q { color: #5dbdb6; } .adlg-lbl-T { color: #b49ad0; }

.adlg-token {
  position: absolute;
  width: 16px; height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(236,220,176,.4);
  box-shadow: 0 1px 2px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 800; color: rgba(20,10,5,.9);
  z-index: 3;
}
.adlg-token.me { border-color: #f0e4c0; border-width: 2px; }
