/* ===== DOPASUJ PARĘ ===== */
#page-para { overflow-x: clip; }
#page-para .container { max-width: 680px; }

/* PARY tło — linie łączące punkty, klimat taktycznej tablicy */
#page-para::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    /* lewa strefa — zielonawa jak lewa kolumna */
    radial-gradient(ellipse 35% 80% at 15% 50%, rgba(26,122,58,0.1) 0%, transparent 70%),
    /* prawa strefa — złotawa jak prawa kolumna */
    radial-gradient(ellipse 35% 80% at 85% 50%, rgba(245,200,66,0.06) 0%, transparent 70%),
    /* środkowa linia łącząca — pionowa */
    /* siatka boiska — poziome linie */
    /* siatka boiska — pionowe linie */
    /* ukośne linie taktyczne */
    radial-gradient(ellipse 35% 80% at 15% 50%, rgba(26,122,58,0.05) 0%, transparent 70%);
}

.pr-mode-badge {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold);
  background: rgba(245,200,66,0.1);
  border: 1px solid rgba(245,200,66,0.3);
  border-radius: 20px;
  padding: 4px 14px;
  text-align: center;
}

.pr-board {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  width: 100%;
  position: relative;
}
.pr-board-middle {
  position: relative;
  z-index: 2;
}
.pr-lines-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}

.pr-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pr-col-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(240,244,239,0.3);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.pr-tile {
  padding: 13px 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(13px, 2.5vw, 16px);
  font-weight: 700;
  text-align: center;
  color: rgba(240,244,239,0.85);
  user-select: none;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  position: relative;
}
.pr-tile:hover:not(.pr-matched):not(.pr-disabled) {
  border-color: rgba(245,200,66,0.5);
  background: rgba(245,200,66,0.07);
  color: var(--gold);
}
.pr-tile.pr-selected {
  border-color: var(--gold);
  background: rgba(245,200,66,0.13);
  color: var(--gold);
  box-shadow: 0 0 0 2px rgba(245,200,66,0.2);
}
.pr-tile.pr-matched {
  border-color: #2ecc71;
  background: rgba(46,204,113,0.13);
  color: #2ecc71;
  cursor: default;
  opacity: 0.75;
}
.pr-tile.pr-wrong {
  border-color: #e74c3c;
  background: rgba(231,76,60,0.12);
  color: #e74c3c;
  animation: prShake 0.35s ease;
}
.pr-tile.pr-disabled { cursor: default; }

@keyframes prShake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-7px); }
  75%      { transform: translateX(7px); }
}

.pr-tile.pr-matched .pr-connector { opacity: 1; }

.pr-feedback {
  min-height: 28px;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.pr-feedback.show { opacity: 1; }
.pr-feedback.fade-out { opacity: 0; transition: opacity 0.6s ease; }
.pr-feedback.wrong  { color: #e74c3c; }
.pr-feedback.correct { color: #2ecc71; }
.pr-feedback.info   { color: rgba(240,244,239,0.5); }

