/* BoltQuickTools shared randomizer styles - used by game randomizer tools */

.role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 20px 0 24px;
}
.role-pill {
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.role-pill:hover:not(.active) { color: var(--text-primary); }

.roll-btn {
  display: block;
  width: 100%;
  padding: 18px 24px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #000;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.15s ease;
  margin: 0 0 16px;
}
.roll-btn:hover { opacity: 0.9; }
.roll-btn:active { transform: translateY(1px); }
.roll-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.reel-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 520px;
  margin: 0 auto;
}
.role-bar { height: 4px; background: var(--border); transition: background 0.2s ease; }

.reel-viewport {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--bg-card);
}
.reel-viewport:has(.reel-state-result:not(.hidden)) { min-height: 0; height: auto; }
.reel-viewport:has(.reel-state-result:not(.hidden)) .reel-track,
.reel-viewport:has(.reel-state-result:not(.hidden)) .reel-indicator,
.reel-viewport:has(.reel-state-result:not(.hidden)) .reel-fade-top,
.reel-viewport:has(.reel-state-result:not(.hidden)) .reel-fade-bottom { display: none; }
.reel-viewport:has(.reel-state-result:not(.hidden)) .reel-state-result {
  position: relative; inset: auto; padding: 30px 16px 24px;
}

.reel-track {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.reel-track.spinning { transition: transform 2.8s cubic-bezier(0.17, 0.67, 0.15, 0.99); }
.reel-row {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.reel-indicator {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  height: 60px;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
  z-index: 2;
}
.reel-fade-top, .reel-fade-bottom {
  position: absolute; left: 0; right: 0;
  height: 90px;
  pointer-events: none;
  z-index: 3;
}
.reel-fade-top    { top: 0; background: linear-gradient(to bottom, var(--bg-card) 0%, transparent 100%); }
.reel-fade-bottom { bottom: 0; background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%); }

.reel-state-idle, .reel-state-result {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 16px;
  background: var(--bg-card);
  z-index: 4;
}
.reel-state-idle .big-mark {
  font-size: 4rem; font-weight: 800;
  color: var(--text-secondary);
  opacity: 0.5;
  line-height: 1;
}
.reel-state-idle p {
  margin-top: 12px;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.op-initials {
  width: 104px; height: 104px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 2.3rem; font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  border: 3px solid var(--border);
  color: var(--text-primary);
}
.op-name {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text-primary);
}
.op-role {
  margin-top: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hidden { display: none !important; }

.count-label {
  text-align: center;
  padding: 10px 16px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-height: 18px;
}

.action-links {
  display: flex; justify-content: center;
  gap: 18px;
  margin-top: 14px;
  font-size: 0.9rem;
}
.action-links button {
  background: none; border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.action-links button:hover:not(:disabled) { color: var(--accent); }
.action-links button:disabled { opacity: 0.4; cursor: not-allowed; }

.hotkey-hint {
  margin-top: 18px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}
.hotkey-hint kbd {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: 'Courier New', monospace;
  font-size: 0.76rem;
  color: var(--text-primary);
}

.stats-panel {
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.stats-panel summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  list-style: none;
}
.stats-panel summary::marker, .stats-panel summary::-webkit-details-marker { display: none; }
.stats-panel summary::after { content: " \25BE"; color: var(--text-secondary); }
.stats-panel[open] summary::after { content: " \25B4"; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.stats-col h3 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.stats-list {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}
.stats-list .row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  border-bottom: 1px dotted rgba(255,255,255,0.04);
}
.stats-list .row .c {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .reel-viewport { min-height: 260px; }
}
