.dashboard {
  display: none;
  width: 100%;
  max-width: 780px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.dashboard.visible {
  display: flex;
}

.top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.tabs {
  display: flex;
  gap: 10px;
  width: 100%;
}

.tab {
  flex: 1;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  text-align: center;
  transition: all 0.15s ease;
}

.tab strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 4px;
}

.tab .count {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.tab.active {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green) inset;
}

.stage {
  width: 100%;
  min-height: 320px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.stage-hint {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.reel-name {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.winner-name {
  font-size: clamp(38px, 8vw, 72px);
  font-weight: 800;
  color: var(--green);
  text-align: center;
  line-height: 1.1;
  animation: pop-in 0.4s ease;
}

.winner-label {
  color: var(--text-muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

@keyframes pop-in {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.controls {
  display: flex;
  gap: 12px;
  width: 100%;
}

.controls .btn-primary {
  margin-top: 0;
}

.btn-secondary {
  flex: 1;
  padding: 14px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
}

.btn-secondary:hover {
  background: rgba(154, 229, 115, 0.08);
}

.btn-secondary:disabled,
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.history {
  width: 100%;
  font-size: 13px;
  color: var(--text-muted);
}

.history summary {
  cursor: pointer;
  padding: 6px 0;
}

.history ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.history li {
  padding: 6px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

canvas#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}
