/* =========================================================================
   Pêcheurs des Courants — styles (classes préfixées pdc-)
   ========================================================================= */

.pdc-root {
  color: var(--text);
  font-size: 14px;
}

.pdc-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

/* ---- Plateau ---- */

.pdc-board-wrap {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px;
  background: #eaf4fb;
}

.pdc-grid {
  display: grid;
  gap: 0;
}

.pdc-cell {
  position: relative;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdc-water { background: #dcefdb00; background: #DCEFFB; }
.pdc-fishing { background: #5DCAA5; }
.pdc-storm { background: #6b4a4a; }
.pdc-current { background: #cfc8f5; }

/* Les 10 cases ports candidates : toujours visibles, bloquées pour qui
   n'en est pas propriétaire (cf. règle de blocage des ports). */
.pdc-port-candidate { background: #f3dba0; }

.pdc-port-pickable {
  cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.pdc-port-pickable:hover {
  background: #ffe9b8;
}

.pdc-kraken-zone {
  background: rgba(178, 34, 34, 0.45);
}

.pdc-reachable {
  cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.pdc-reachable:hover {
  background: rgba(255, 255, 255, 0.35);
}

.pdc-kraken-target {
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--accent);
}
.pdc-kraken-target:hover {
  background: rgba(178, 34, 34, 0.2);
}

.pdc-port-marker {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.4);
}

.pdc-boat {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

/* ---- Panneau latéral ---- */

.pdc-panel {
  flex: 1 1 260px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdc-status {
  font-weight: 600;
  padding: 6px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.pdc-winner {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
}

.pdc-info {
  padding: 4px 0;
}

.pdc-billes,
.pdc-cartes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pdc-bille-chip {
  padding: 2px 8px;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.pdc-carte-chip {
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 12px;
}

.pdc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pdc-shop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-top: 1px dashed var(--line);
}

.pdc-btn {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
}
.pdc-btn:hover {
  background: var(--accent);
  color: #fff;
}
.pdc-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pdc-hint {
  font-style: italic;
  opacity: 0.75;
  font-size: 12px;
}

.pdc-combat,
.pdc-trade {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
}

.pdc-log {
  margin-top: auto;
  max-height: 140px;
  overflow-y: auto;
  font-size: 12px;
  opacity: 0.85;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.pdc-log > div {
  padding: 1px 0;
}
