.rng-tool {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: white;
}

.rng-container {
  background: white;
  padding: 5vh;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  width: 100%;
  max-width: 1400px;
  transition: transform 0.3s ease;
}

.rng-title {
  font-size: min(5vw, 48px);
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--color-primary);
}

.rng-options {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.rng-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.input-group {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.input-label {
  font-size: min(3vw, 18px);
  font-weight: 600;
  color: var(--color-text);
}

.number-input {
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 16px;
  width: 100px;
  text-align: center;
}

.number-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.rng-display {
  margin: 40px 0;
  position: relative;
}

.number-result {
  font-size: min(20vw, 180px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin: 0;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: all 0.3s ease;
}

.number-result.animating {
  animation: pulse 0.5s ease-in-out;
}

.rng-controls {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.generate-btn {
  padding: min(3vh, 16px) min(4vw, 32px);
  font-size: min(3vw, 20px);
  border: none;
  border-radius: 8px;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: min(20vw, 150px);
}

.generate-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.rng-history {
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.history-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--color-text);
}

.history-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
}

.history-item:last-child {
  border-bottom: none;
}

.history-result {
  font-weight: 600;
  color: var(--color-primary);
}

.list-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.list-input {
  width: 100%;
  min-height: 150px;
  padding: 15px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 20px;
  resize: vertical;
}

.list-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.list-instructions {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 20px;
  text-align: left;
  width: 100%;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .input-group {
    flex-direction: column;
  }
  
  .rng-controls {
    flex-direction: column;
  }
  
  .generate-btn {
    width: 100%;
  }
}
