/*
 * Stylesheet für das Stärken‑Drop‑Spiel.
 *
 * Dieses CSS definiert das Layout des Spielfelds, der fallenden
 * Stärken (Chips) und des Sammelkorbs.  Farben orientieren sich an
 * den bestehenden CSS‑Variablen des Haupt‑Plugins.  Bei fehlenden
 * Variablen werden fallback‑Farben verwendet.
 */

#staerkensieb-drop-app {
  margin-top: 20px;
  padding: 0;
  position: relative;
}

#staerkensieb-drop-app .drop-game-title {
  margin-bottom: 6px;
  font-size: 1.4em;
  font-weight: 600;
}

#staerkensieb-drop-app .drop-game-start-label {
  margin-bottom: 6px;
  font-size: 1em;
}

.drop-game-buttons {
  margin-bottom: 12px;
}

.drop-game-button {
  margin-right: 8px;
  margin-bottom: 6px;
  padding: 6px 12px;
  font-size: 0.9em;
  cursor: pointer;
}

#staerkensieb-drop-playfield {
  position: relative;
  width: 100%;
  height: 350px;
  border: 2px dashed var(--ss-blue-deep, #0058a3);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--ss-blue-verylight, #f3f9ff);
}

/* Fallende Chips */
.drop-chip {
  position: absolute;
  display: inline-block;
  /* Increase padding and font size to make chips easier to click. */
  padding: 6px 14px;
  border-radius: 16px;
  background-color: var(--ss-primary-color, #0073aa);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease;
  /* Ensure the entire chip area is clickable. */
  pointer-events: auto;
  z-index: 10;
}

/* Gold‑Chip (Power‑Up) */
.drop-chip.gold {
  background-color: gold;
  color: #000;
  font-weight: bold;
}

/* Sammelkorb */
#staerkensieb-drop-basket {
  margin-top: 10px;
  min-height: 60px;
  border-top: 2px solid var(--ss-blue-deep, #0058a3);
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drop-basket-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  background-color: var(--ss-blue-light, #d0e8ff);
  border: 1px solid var(--ss-blue-deep, #0058a3);
  color: var(--ss-blue-deep, #0058a3);
  font-size: 14px;
}

.drop-game-message {
  margin-top: 10px;
  font-size: 0.95em;
  font-weight: 600;
}

.drop-game-no-buttons {
  font-style: italic;
  color: var(--ss-blue-deep, #0058a3);
}

.drop-game-restart-wrap {
  margin-top: 14px;
}

.drop-game-restart {
  padding: 8px 14px;
  font-weight: 700;
}

/* Prompt debug output under the game (enabled via [staerkensieb_drop debug_prompts="1"]) */
.drop-game-debug {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed rgba(0,0,0,0.25);
  border-radius: 10px;
  background: rgba(255,255,255,0.6);
  font-size: 13px;
  line-height: 1.35;
}
.drop-game-debug summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 8px;
}
.drop-game-debug pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
