:root {
  --card: #171a2b;
  --edge: #24273f;
  --ink: #e8e8f0;
  --muted: #a9aac0;
}

/* App shells */
.app-card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.joke-box {
  font-size: 1.1rem;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed #2a2e52;
  background: #121531;
  min-height: 64px;
}

.muted {
  color: var(--muted);
}

.rating {
  display: flex;
  /* Changed from 'none' to 'flex' */
  gap: 8px;
  align-items: center;
  margin-top: 1rem;
  padding: 10px;
  border-top: 1px solid var(--edge);
}

.rating button {
  transition: all 0.2s;
}

.rating button:hover {
  background: var(--edge);
  transform: scale(1.1);
}

.rating button[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.history {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 0 0 0 18px;
}

.history li {
  margin-bottom: 8px;
}

.statline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat {
  background: #121531;
  border: 1px solid var(--edge);
  padding: 12px;
  border-radius: 12px;
}

.stat .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}

/* Make Bootstrap's light-outline buttons readable on dark bg */
.btn-outline-light {
  --bs-btn-hover-bg: rgba(255, 255, 255, .15);
}