/* ===== PIŁKARSKA ROZSYPANKA ===== */
#page-rozsypanka { overflow-x: clip; }
#page-rozsypanka .container { max-width: 680px; }

/* Kategoria */
.rz-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,200,66,0.1);
  border: 1px solid rgba(245,200,66,0.25);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* Obszar odpowiedzi */
.rz-answer-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(240,244,239,0.4);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 6px;
}

.rz-answer-area {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  min-height: 54px;
  background: rgba(0,0,0,0.2);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 8px;
  width: 100%;
}
.rz-answer-area.rz-correct { border-color: #2ecc71; background: rgba(46,204,113,0.06); }
.rz-answer-area.rz-wrong { border-color: #e74c3c; background: rgba(231,76,60,0.06); animation: rzShake 0.4s ease; }
.rz-answer-area.rz-wrong-static { border-color: #e74c3c !important; background: rgba(231,76,60,0.06) !important; }

@keyframes rzShake {
  0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)}
}

/* Kafelki liter */
.rz-tile {
  min-width: 38px;
  height: 44px;
  padding: 0 6px;
  background: var(--green-mid, #1a3a28);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(.34,1.56,.64,1);
  user-select: none;
}
.rz-tile:hover { background: #2a5a3a; border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.rz-tile.rz-used { opacity: 0; pointer-events: none; transform: scale(0.8); }
.rz-tile.rz-space { background: transparent; border: none; cursor: default; font-size: 18px; color: rgba(240,244,239,0.4); min-width: 16px; }
.rz-tile.rz-space:hover { transform: none; background: transparent; }

/* Kafelki w odpowiedzi */
.rz-ans-tile {
  min-width: 38px;
  height: 44px;
  padding: 0 6px;
  background: rgba(245,200,66,0.12);
  border: 2px solid var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.15s;
}
.rz-ans-tile:hover { background: rgba(245,200,66,0.22); }
.rz-ans-tile.rz-space {
  background: transparent;
  border: 2px solid transparent;
  cursor: default;
  min-width: 38px;
  width: 38px;
}
.rz-ans-tile.rz-space:hover { transform: none; background: transparent; }
.rz-ans-tile.rz-dash { background: rgba(245,200,66,0.08); border: 2px solid rgba(245,200,66,0.4); cursor: default; color: var(--gold); font-size: 22px; }
.rz-ans-tile.rz-dash:hover { transform: none; background: rgba(245,200,66,0.08); }
.rz-empty-slot { min-width: 38px; height: 44px; border: 2px dashed rgba(255,255,255,0.15); border-radius: 8px; }

/* Pool liter */
.rz-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  min-height: 54px;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px;
  width: 100%;
}

/* Podpowiedzi */
.rz-hints {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rz-hint-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(240,244,239,0.5);
  transition: all 0.18s;
  width: 100%;
  text-align: left;
  letter-spacing: 0.5px;
}
.rz-hint-btn:hover:not(.rz-hint-used):not(.rz-hint-locked) {
  border-color: rgba(245,200,66,0.4);
  color: var(--gold);
  background: rgba(245,200,66,0.05);
}
.rz-hint-btn.rz-hint-used { border-color: rgba(245,200,66,0.25); background: rgba(245,200,66,0.06); cursor: default; }
.rz-hint-btn.rz-hint-locked { opacity: 0.3; cursor: not-allowed; }
.rz-hint-label { flex: 1; }
.rz-hint-value { font-weight: 700; color: var(--gold); font-size: 15px; }
.rz-hint-cost { font-size: 11px; color: rgba(231,76,60,0.7); letter-spacing: 1px; }

/* Punkty */
.rz-pts-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--gold);
  transition: color 0.3s;
}
.rz-pts-display.reduced { color: #e67e22; }
.rz-pts-display.min { color: #e74c3c; }
.rz-pts-label { font-size: 11px; letter-spacing: 2px; color: rgba(240,244,239,0.35); text-transform: uppercase; text-align: center; }

/* Feedback */
.rz-feedback {
  min-height: 22px;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}
.rz-feedback.correct { color: #2ecc71; }
.rz-feedback.wrong { color: #e74c3c; }

/* Progress dots */
.rz-progress-dots { display: flex; gap: 5px; justify-content: center; }
.rz-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); transition: background 0.3s; }
.rz-dot.done { background: #2ecc71; }
.rz-dot.current { background: var(--gold); transform: scale(1.3); }
.rz-dot.wrong-dot { background: #e74c3c; }

/* Reveal */
.rz-answer-reveal {
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 4px;
  color: var(--gold);
  margin: 6px 0 4px;
}

/* Animacje wyczyść i poddaj się */
/* Latający kafelek - klonowany element podczas animacji */
.rz-tile.rz-flying {
  background: var(--green-mid, #1a3a28);
  border: 2px solid var(--gold, #f5c842);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: #f0f4ef;
  box-shadow: 0 4px 20px rgba(245,200,66,0.3);
}

/* Hover przycisku Poddaję się */
button[onclick="rzSkip()"] {
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
button[onclick="rzSkip()"]:hover:not(:disabled) {
  background: rgba(231,76,60,0.25) !important;
  border-color: rgba(231,76,60,0.6) !important;
  color: #e74c3c !important;
}
button[onclick="rzSkip()"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}