/* === Binary Baccarat Game-Specific Styles === */

/* Target Display */
.target-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
}
.target-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.target-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-glow);
  animation: targetPulse 2.5s ease-in-out infinite;
}
.target-binary {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--zero);
  letter-spacing: 3px;
}
.target-decimal {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}
@keyframes targetPulse {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(64, 208, 240, 0.1);
  }
  50% {
    box-shadow:
      0 0 16px rgba(64, 208, 240, 0.2),
      0 0 30px rgba(64, 208, 240, 0.08);
  }
}

/* Binary Pip on Cards */
.bit-pip {
  position: absolute;
  top: 3px;
  right: 3px;
  padding: 1px 3px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(64, 208, 240, 0.15);
  color: var(--zero);
  border: 1px solid rgba(64, 208, 240, 0.25);
}

/* Card selection */
.card.selected {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 2px var(--zero),
    0 0 12px rgba(64, 208, 240, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.25);
  animation: selectPulse 1.2s ease-in-out infinite;
}
.card.selectable {
  cursor: pointer;
}
.card.selectable:hover {
  transform: translateY(-4px);
}
.card.shifted {
  box-shadow:
    0 0 0 2px rgba(144, 96, 224, 0.5),
    0 0 8px rgba(144, 96, 224, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.25);
}
.card.notted {
  box-shadow:
    0 0 0 2px rgba(224, 96, 160, 0.5),
    0 0 8px rgba(224, 96, 160, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Operation selector */
.op-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.op-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 1px;
}
.op-btn:hover {
  border-color: var(--border-glow);
  color: var(--text-dim);
}
.op-btn:active {
  transform: scale(0.96);
}
.op-btn.active {
  border-color: var(--zero);
  color: var(--zero);
  background: rgba(64, 208, 240, 0.1);
  box-shadow: 0 0 8px rgba(64, 208, 240, 0.15);
}

/* Live preview */
.preview-zone {
  text-align: center;
  min-height: 28px;
  padding: 2px 0;
}
.preview-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  animation: fadeSlideUp 0.2s ease-out both;
}
.preview-val {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
}
.preview-val.exact {
  color: var(--zero);
  text-shadow: 0 0 8px rgba(64, 208, 240, 0.4);
}
.preview-val.close {
  color: var(--win);
}
.preview-val.far {
  color: var(--lose);
}
.preview-dist {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Shift mode prompt */
.shift-prompt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.8px;
  color: var(--invert-color);
  animation: tapPulse 1.4s ease-in-out infinite;
}

/* History row (BET phase) */
.history-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.4s ease-out both;
}
.hist-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  opacity: 0.85;
}

/* Dealer combo reveal */
.dealer-combo {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-align: center;
  margin-top: 2px;
}

/* Value chart in rules */
.val-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin: 6px 0;
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
}
.val-chart-cell {
  padding: 3px 1px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-dim);
}
.val-chart-head {
  font-weight: 700;
  font-size: 10px;
}

/* Responsive */
@media (max-width: 390px) {
  .target-binary {
    font-size: 18px;
    letter-spacing: 2px;
  }
  .op-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}
@media (max-height: 600px) {
  .target-zone {
    padding: 2px 0;
  }
  .target-display {
    padding: 4px 12px;
  }
  .target-binary {
    font-size: 18px;
  }
}
