.pp-sub {
  opacity: 0.72;
  font-weight: 400;
  margin-left: 4px;
}

.pp-custom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.pp-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pp-flip-bar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pp-stage {
  display: inline-grid;
  gap: 4px;
  align-items: center;
  justify-items: center;
  user-select: none;
}

.pp-coord {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.pp-slot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px dashed rgba(168, 159, 146, 0.35);
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.pp-slot:hover {
  border-color: var(--primary);
  background: rgba(232, 160, 74, 0.12);
}

.pp-slot.is-lamp {
  border-style: solid;
  border-color: rgba(232, 160, 74, 0.8);
  background: rgba(232, 160, 74, 0.16);
  color: var(--primary);
}

.pp-slot.is-lamp.is-lit {
  border-color: #ffe39b;
  background: radial-gradient(circle, rgba(255, 224, 130, 0.45), rgba(232, 160, 74, 0.18));
  box-shadow: 0 0 18px rgba(232, 160, 74, 0.65);
}

.pp-slot.is-water {
  border-style: solid;
  border-color: #54b8e8;
  background: radial-gradient(circle, rgba(84, 184, 232, 0.32), rgba(24, 38, 48, 0.5));
  color: #7cd4ff;
  box-shadow: 0 0 12px rgba(84, 184, 232, 0.35);
}

.pp-cell {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #2e2923;
  background: #1d1a16;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.pp-cell:hover {
  border-color: var(--primary);
}

.pp-cell.is-empty {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.pp-cell.is-wet {
  border-color: rgba(94, 198, 232, 0.55);
  background: rgba(44, 88, 110, 0.18);
}

.pp-cell.is-sealed {
  border-color: rgba(110, 200, 160, 0.65);
  background: rgba(110, 200, 160, 0.12);
}

.pp-cell.is-leak {
  border-color: rgba(232, 120, 74, 0.72);
}

.pp-cell.is-focus {
  box-shadow: 0 0 0 2.5px #fff2d6, 0 0 14px rgba(232, 160, 74, 0.6);
  z-index: 4;
}

.pp-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pp-turn-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 24px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #12110e;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  z-index: 3;
}

.pp-compact .pp-cell {
  width: 42px;
  height: 42px;
}

@media (max-width: 600px) {
  .pp-cell {
    width: 38px;
    height: 38px;
  }
  .pp-compact .pp-cell {
    width: 33px;
    height: 33px;
  }
}
