body {
  background: radial-gradient(circle at center, #0d0d0d, #000000);
  color: #f0f0f0;
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  transition: background 1s ease;
}

.start-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #0d0d0d;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease;
  text-align: center;
}

.start-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.start-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.start-content h1 {
  color: #ff0066;
  font-size: 3rem;
  margin-bottom: 10px;
}

.start-content .subtitle {
  color: #aaa;
  font-style: italic;
  margin-bottom: 30px;
}

#start-btn {
  background-color: #ff0066;
  color: white;
  font-size: 1.2rem;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#start-btn:hover {
  background-color: #cc0052;
}

.container {
  text-align: center;
  max-width: 600px;
  z-index: 1;
}

h1 {
  font-size: 2.5rem;
  color: #ff0066;
}

.subtitle {
  font-style: italic;
  margin-bottom: 20px;
  color: #aaa;
}

.button-group {
  margin-bottom: 20px;
}

button {
  background-color: #ff0066;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  margin: 0 5px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
button:hover {
  background-color: #cc0052;
  box-shadow: 0 0 10px #ff0066;
}

.card {
  background-color: #1a1a1a;
  border: 1px solid #333;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  white-space: pre-line;
  min-height: 260px;
  position: relative;
  box-shadow: 0 0 15px rgba(255, 0, 102, 0.15);
}

.overall-rarity {
  position: absolute;
  top: -10px;
  right: 20px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
}

.rarity-meter {
  width: 100%;
  background: #333;
  height: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  overflow: hidden;
}
.rarity-fill {
  height: 100%;
  transition: width 0.5s ease;
  animation: pulse 2s infinite ease-in-out;
}

.trait {
  opacity: 0;
  margin-bottom: 8px;
}
.trait.show {
  animation: neonFlicker 0.8s ease forwards;
}
.trait-label {
  font-weight: bold;
  margin-right: 4px;
}

.rarity-common    { color: #b0b0b0; }
.rarity-uncommon  { color: #1eff00; }
.rarity-rare      { color: #0070dd; }
.rarity-epic      { color: #a335ee; }
.rarity-legendary { color: #ff8000; }

.rarity-fill.rarity-common    { background: #b0b0b0; }
.rarity-fill.rarity-uncommon  { background: #1eff00; }
.rarity-fill.rarity-rare      { background: #0070dd; }
.rarity-fill.rarity-epic      { background: #a335ee; }
.rarity-fill.rarity-legendary { background: #ff8000; }

@keyframes neonFlicker {
  0%   { opacity: 0; text-shadow: none; }
  20%  { opacity: 1; text-shadow: 0 0 5px #ff0066; }
  40%  { opacity: 0.8; text-shadow: 0 0 10px #ff0066; }
  60%  { opacity: 1; text-shadow: 0 0 15px #ff0066, 0 0 10px #ff0066; }
  80%  { opacity: 0.9; }
  100% { opacity: 1; }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0px rgba(255, 0, 102, 0.5); }
  50%  { box-shadow: 0 0 15px rgba(255, 0, 102, 0.8); }
  100% { box-shadow: 0 0 0px rgba(255, 0, 102, 0.5); }
}
