.higher-lower-shell {
  align-items: flex-start;
}

.higher-lower-hero {
  background:
    linear-gradient(180deg, rgba(255, 122, 0, 0.08), rgba(0, 191, 255, 0.06)),
    linear-gradient(180deg, rgba(18, 24, 38, 0.95), rgba(8, 13, 22, 0.97));
}

.streak-wrap {
  justify-content: flex-end;
}

.streak-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hl-mode-panel {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow-soft);
}

.hl-mode-label {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hl-mode-select {
  min-width: 220px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(4, 10, 18, 0.85);
  color: var(--text);
  padding: 12px 16px;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.hl-mode-select:focus {
  border-color: rgba(0, 191, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.12);
}

.streak-pill,
.hl-status-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.hl-status-panel {
  width: 100%;
  margin-top: 20px;
  color: #dff7ff;
}

.hl-status-panel.status-correct {
  color: #d7ffef;
  border-color: rgba(95, 240, 176, 0.28);
  background: rgba(95, 240, 176, 0.1);
}

.hl-status-panel.status-wrong {
  color: #ffd7dd;
  border-color: rgba(255, 107, 125, 0.28);
  background: rgba(255, 107, 125, 0.1);
}

.higher-lower-board {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.hl-player-card {
  border-radius: 18px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)),
    linear-gradient(180deg, rgba(16, 24, 38, 0.94), rgba(8, 13, 22, 0.96));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hl-player-card.is-correct {
  border-color: rgba(95, 240, 176, 0.32);
  box-shadow: 0 0 18px rgba(95, 240, 176, 0.12), var(--shadow-soft);
  background:
    linear-gradient(180deg, rgba(95, 240, 176, 0.08), rgba(255,255,255,0.015)),
    linear-gradient(180deg, rgba(16, 24, 38, 0.94), rgba(8, 13, 22, 0.96));
}

.hl-player-card.is-wrong,
.higher-lower-board.is-wrong-flash .hl-player-card {
  border-color: rgba(255, 107, 125, 0.3);
  box-shadow: 0 0 18px rgba(255, 107, 125, 0.12), var(--shadow-soft);
}

.hl-player-label,
.hl-stat-label {
  margin: 0 0 10px;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hl-player-name {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.hl-stat-value {
  margin-top: 12px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #ffd7b5;
  text-shadow: 0 0 22px rgba(255, 122, 0, 0.18);
}

.hl-stat-value.revealing {
  animation: statReveal 320ms ease;
}

.player-b-card.unrevealed .hl-stat-value {
  color: #f7fbff;
}

.hl-versus-wrap,
.hl-decision-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.hl-versus,
.hl-vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  color: white;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 22px rgba(255, 122, 0, 0.18), 0 0 18px rgba(0, 191, 255, 0.12);
}

.hl-guess-btn,
.hl-btn {
  min-width: 170px;
  width: 100%;
  min-height: 52px;
}

.hl-btn.higher {
  background: linear-gradient(135deg, var(--orange), var(--blue));
  color: white;
  box-shadow: 0 14px 28px rgba(255, 122, 0, 0.18), 0 0 22px rgba(0, 191, 255, 0.12);
}

.hl-btn.lower {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
}

.hl-guess-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.hl-result-modal {
  border: 1px solid rgba(255,255,255,0.07);
}

.modal-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.modal-stat {
  margin-top: 18px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
}

.modal-message {
  margin-top: 12px;
}

.hl-new-best-badge {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.16);
  border: 1px solid rgba(255, 122, 0, 0.3);
  color: #ffd7b5;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.18), 0 0 18px rgba(0, 191, 255, 0.08);
}

.modal-comparison,
.modal-choice {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.hl-final-streak {
  color: var(--text);
  margin-bottom: 10px;
}

.hl-result-line {
  margin: 6px 0;
  color: var(--muted);
  font-weight: 700;
}

.hl-player-results {
  display: grid;
  gap: 12px;
}

.hl-player-result-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.hl-player-result-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@keyframes statReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .higher-lower-board {
    grid-template-columns: 1fr;
  }

  .hl-versus-wrap,
  .hl-actions,
  .hl-guess-btn,
  .streak-pill,
  .hl-decision-stack,
  .streak-stats,
  .hl-mode-panel,
  .hl-mode-select {
    width: 100%;
  }

  .hl-player-results {
    grid-template-columns: 1fr;
  }
}

.hl-decision-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  width: 100%;
}

.hl-choice-btn {
  width: min(220px, 90%) !important;
  min-height: 46px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.hl-vs-badge {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  background: linear-gradient(135deg, var(--orange), var(--blue)) !important;
  color: white !important;
  box-shadow: 0 10px 22px rgba(255, 122, 0, 0.18), 0 0 18px rgba(0, 191, 255, 0.12) !important;
}

.hl-higher {
  order: 1 !important;
  background: linear-gradient(135deg, var(--orange), var(--blue)) !important;
  color: white !important;
  box-shadow: 0 14px 28px rgba(255, 122, 0, 0.18), 0 0 22px rgba(0, 191, 255, 0.12) !important;
}

.hl-vs-badge {
  order: 2 !important;
}

.hl-lower {
  order: 3 !important;
  background: rgba(255,255,255,0.06) !important;
  color: var(--text) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: var(--shadow-soft) !important;
}
