/* ===== ハイ＆ロー ===== */

.hl-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  gap: 10px;
  margin: 8px 0;
}

.hl-card-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hl-card {
  width: 110px;
  height: 150px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s;
  user-select: none;
  -webkit-user-select: none;
}

.hl-card-pop {
  animation: hlCardPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes hlCardPop {
  0%   { transform: rotateY(90deg) scale(0.8); opacity: 0; }
  60%  { transform: rotateY(-8deg) scale(1.05); }
  100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}

.hl-card-value {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.hl-card-suit {
  font-size: 1.8rem;
  line-height: 1;
}

.hl-card.hl-red .hl-card-value,
.hl-card.hl-red .hl-card-suit {
  color: #e11d48;
}

.hl-card.hl-black .hl-card-value,
.hl-card.hl-black .hl-card-suit {
  color: #1e1b4b;
}

.hl-deck-info {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

.hl-message {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-align: center;
  margin: 4px 0;
  min-height: 24px;
}

.hl-btns {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  justify-content: center;
}

.hl-btn {
  flex: 1;
  max-width: 160px;
  height: 68px;
  font-size: 1.2rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.1s, filter 0.1s;
  user-select: none;
  -webkit-user-select: none;
  letter-spacing: 0.05em;
}

.hl-btn:active {
  transform: scale(0.93);
  filter: brightness(0.85);
}

.hl-btn-hi {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
}

.hl-btn-lo {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
}

.hl-result-correct {
  animation: hlCorrect 0.3s ease both;
}

@keyframes hlCorrect {
  50% { transform: scale(1.15); filter: brightness(1.3); }
}

.hl-result-wrong {
  animation: hlWrong 0.4s ease both;
}

@keyframes hlWrong {
  25% { transform: rotate(-4deg) scale(1.05); }
  75% { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}
