.character-creation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30,40,50,0.85); /* lighter overlay for readability */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-sheet {
  background: var(--panel);
  border-radius: 8px;
  padding: 24px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* Fancy scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 199, 166, 0.3) rgba(13, 26, 36, 0.5);
}

/* Webkit scrollbar styling */
.character-sheet::-webkit-scrollbar {
  width: 8px;
}

.character-sheet::-webkit-scrollbar-track {
  background: rgba(13, 26, 36, 0.5);
  border-radius: 4px;
}

.character-sheet::-webkit-scrollbar-thumb {
  background: rgba(184, 199, 166, 0.3);
  border-radius: 4px;
  transition: background 0.2s;
}

.character-sheet::-webkit-scrollbar-thumb:hover {
  background: rgba(184, 199, 166, 0.5);
}

.sheet-header {
  margin-bottom: 24px;
  text-align: center;
}

.sheet-header h2 {
  color: #e6f0d9;
  margin: 0 0 8px 0;
}

.sheet-header p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
}

.points-display {
  font-size: 1.2em;
  color: #ffffff;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.character-content h3 {
  color: #e6f0d9;
  margin: 24px 0 16px 0;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(230, 240, 217, 0.2);
  padding-bottom: 8px;
}

/* Character Sheet Layout */
.character-content {
  overflow-y: auto;
  max-height: calc(90vh - 140px);
  padding: 20px;
}

.question-list {
  margin-bottom: 32px;
}

.character-content h3 {
  color: #e6f0d9;
  margin: 0 0 16px 0;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(230, 240, 217, 0.2);
  padding-bottom: 8px;
}

/* Questions Toggle Buttons */
.question-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question-toggle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
  border: 1px solid rgba(230, 240, 217, 0.1);
}

.question-toggle .options {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.option-button {
  flex: 1;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
  color: var(--accent);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.option-button:hover {
  background: rgba(255,255,255,0.03);
}

.option-button.active {
  background: rgba(74, 148, 74, 0.15);
  border-color: rgba(74, 148, 74, 0.3);
  color: #e6f0d9;
}

/* Skills Section */
.skills-section {
  margin-top: 32px;
}

.points-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.points-info #pointsRemaining {
  font-weight: bold;
  color: #4a944a;
}

.points-info .cost-info {
  color: var(--muted);
  font-size: 14px;
}

.points-info.warning #pointsRemaining {
  color: #c14a4a;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin: 0 auto;
  max-width: 800px;
}

.skill-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
}

.skill-name {
  font-weight: 500;
  color: #e6f0d9;
  font-size: 15px;
}

.dot-control {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 199, 166, 0.1);
  border: 1px solid rgba(184, 199, 166, 0.2);
  color: var(--accent);
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
  padding: 4px;
  line-height: 1;
}

.dot-control:hover {
  background: rgba(184, 199, 166, 0.2);
  border-color: rgba(184, 199, 166, 0.3);
}

.dot-control::after {
  display: block;
  font-size: 14px;
  line-height: 1;
}

/* Triangle arrows using unicode characters */
.dot-control.decrease::after {
  content: "◀";
}

.dot-control.increase::after {
  content: "▶";
}

.skill-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  position: relative;
}

.dot.active {
  background: var(--accent);
  border-color: transparent;
  box-shadow: 
    0 0 10px rgba(74, 148, 74, 0.4),
    0 0 20px rgba(74, 148, 74, 0.2);
}

/* Add pulse animation for active dots */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.dot.active {
  animation: pulse 2s ease-in-out infinite;
}

.character-sheet::-webkit-scrollbar {
  width: 8px;
}

.character-sheet::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.character-sheet::-webkit-scrollbar-thumb {
  background: rgba(184,199,166,0.2);
  border-radius: 4px;
}

.character-sheet::-webkit-scrollbar-thumb:hover {
  background: rgba(184,199,166,0.3);
}

.save-section {
  margin-top: 32px;
  text-align: right;
}