:root {
  --primary-color: #deb76c; 
  --secondary-color: #00c2b8; 
  --background-color: #1a1a22; 
  --text-color: #ffffff;
  --card-bg: #2d2d3a; 
  --elemental-burst-color: #ffd700; 
  --anemo-color: #74c2a8; 
  --geo-color: #fcac45; 
  --electro-color: #ac8fe4; 
  --dendro-color: #a5c83b; 
  --hydro-color: #4cc2f1; 
  --pyro-color: #ee8262; 
  --cryo-color: #9fd6e3; 
  --constellation-color: #c7b1e3; 
  --save-btn-color: #5bc168; 
  --roster-card-bg: #323240; 
  --roster-accent: #deb76c; 
  --final-smash-color: #ffd700;
  --entrance-color: #00e676;
  --victory-color: #aa00ff;
  --classic-mode-color: #e91e63;
  --invitation-color: #1de9b6;
  --guidance-color: #42a5f5;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.super-edition {
  color: var(--elemental-burst-color);
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.credits {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  opacity: 0.7;
  font-style: italic;
}

.heart {
  color: #ff4081;
}

.smash-logo {
  animation: rotate 10s linear infinite;
  margin: 0 auto;
}

.roster-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.5rem;
}

.roster-btn {
  background-color: var(--roster-accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.roster-count {
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.input-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.input-section .toggle-container {
  margin-top: 0.5rem;
  display: none;
}

textarea#descriptionInput {
  padding: 0.8rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 4px;
  background-color: var(--card-bg);
  color: var(--text-color);
  width: 300px;
  resize: vertical;
  min-height: 60px;
  margin-top: 0.5rem;
}

input[type="text"] {
  padding: 0.8rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 4px;
  background-color: var(--card-bg);
  color: var(--text-color);
  width: 300px;
}

button {
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 4px;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #ff6e40;
}

.save-btn {
  background-color: var(--save-btn-color);
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.save-btn:hover {
  background-color: #00e676;
}

.back-btn {
  background-color: var(--secondary-color);
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.back-btn:hover {
  background-color: #448aff;
}

.loading-section {
  text-align: center;
}

.loading-animation {
  margin: 2rem auto;
  width: 100px;
  height: 100px;
  position: relative;
}

.loading-animation .genshin-logo {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pulse 1.5s ease-in-out infinite;
}

.loading-animation .genshin-logo svg {
  width: 80px;
  height: 80px;
  animation: rotate 3s linear infinite;
}

.vision-orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 0 15px var(--primary-color);
  position: relative;
  animation: pulse 1.5s ease-in-out infinite;
}

.vision-orb::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: rgba(255, 255, 255, 0.8);
  clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

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

.result-section {
  margin-top: 2rem;
}

.result-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.character-info {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.character-info h2 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.character-tagline {
  color: var(--final-smash-color);
  font-size: 1.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.character-info p {
  font-size: 1.1rem;
  margin: 0;
}

.character-weight-class {
  margin-top: 0.8rem;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: inline-block;
}

.weight-label {
  font-weight: bold;
  margin-right: 0.5rem;
}

.weight-value {
  color: var(--final-smash-color);
  font-weight: bold;
}

.moveset-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.move-category {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
}

.move-item {
  margin: 1rem 0;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.move-name {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.ledge-attack-item {
  background-color: rgba(33, 150, 243, 0.1);
  border-left: 3px solid #2196f3;
}

.ledge-attack-item .move-name {
  color: #2196f3;
}

.final-smash-item {
  background-color: rgba(255, 215, 0, 0.15);
  border: 2px solid var(--final-smash-color);
}

.final-smash-item .move-name {
  color: var(--final-smash-color);
  font-size: 1.2em;
}

.ledge-attacks-category {
  background: linear-gradient(135deg, var(--card-bg), #2d3e4f);
}

.final-smash-category {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--card-bg), #3d3d3d);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--final-smash-color);
}

.bonus-section {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.costume-category,
.taunt-category,
.entrance-category,
.victory-category,
.losing-category {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
}

.costume-item,
.taunt-item,
.entrance-item,
.victory-item,
.losing-item {
  margin: 0.8rem 0;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: transform 0.2s, background-color 0.2s;
}

.costume-item:hover,
.taunt-item:hover,
.entrance-item:hover,
.victory-item:hover,
.losing-item:hover {
  transform: translateX(5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.costume-name,
.victory-name,
.losing-name {
  color: var(--secondary-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.1em;
}

.entrance-name {
  color: var(--entrance-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.1em;
}

.costume-reference,
.entrance-desc,
.victory-desc,
.losing-desc {
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

.taunt-direction {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.1em;
}

.taunt-desc {
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.entrance-item {
  background-color: rgba(0, 230, 118, 0.1);
  border-left: 3px solid var(--entrance-color);
}

.victory-item {
  background-color: rgba(170, 0, 255, 0.1);
  border-left: 3px solid var(--victory-color);
}

.losing-item {
  background-color: rgba(244, 67, 54, 0.1);
  border-left: 3px solid #f44336;
}

.section-header {
  grid-column: 1 / -1;
  color: var(--primary-color);
  font-size: 1.5em;
  margin: 1rem 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hidden {
  display: none;
}

.website-changelog-section {
  margin-top: 2rem;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
}

.website-changelog-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.website-update-entry {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #2196f3;
  position: relative;
  overflow: hidden;
}

.website-update-entry::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, transparent 50%, rgba(33, 150, 243, 0.2) 50%);
}

.update-version {
  font-size: 1.4em;
  font-weight: bold;
  color: #2196f3;
  margin-bottom: 0.5rem;
}

.update-date {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.update-features {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.feature-icon {
  color: #2196f3;
  font-size: 1.2em;
  min-width: 24px;
}

.feature-text {
  flex: 1;
  line-height: 1.5;
}

.feature-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  margin-left: 8px;
  font-weight: bold;
}

.tag-new {
  background-color: #4caf50;
  color: white;
}

.tag-improved {
  background-color: #ff9800;
  color: white;
}

.tag-fixed {
  background-color: #f44336;
  color: white;
}

/* Classic Mode Styles */
.classic-mode-section {
  grid-column: 1 / -1;
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.classic-mode-title {
  color: var(--classic-mode-color);
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
  border-bottom: 2px solid var(--classic-mode-color);
  padding-bottom: 0.5rem;
}

.classic-mode-desc {
  margin: 1rem 0;
  font-style: italic;
  line-height: 1.6;
  text-align: center;
  padding: 0.5rem;
  background-color: rgba(233, 30, 99, 0.1);
  border-radius: 4px;
}

.classic-mode-route {
  margin: 1.5rem 0;
}

.classic-mode-rounds {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.round-item {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border-left: 3px solid var(--classic-mode-color);
  transition: transform 0.2s;
}

.round-item:hover {
  transform: translateX(5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.round-number {
  font-weight: bold;
  color: var(--classic-mode-color);
  margin-bottom: 0.5rem;
}

.round-opponents {
  font-weight: bold;
}

.round-reason {
  font-style: italic;
  margin-top: 0.3rem;
  font-size: 0.95rem;
}

.boss-round {
  background-color: rgba(233, 30, 99, 0.2);
  border: 2px solid var(--classic-mode-color);
  padding: 1.2rem;
}

.classic-mode-cutscene {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.cutscene-title {
  color: var(--classic-mode-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.cutscene-desc {
  font-style: italic;
  line-height: 1.6;
}

/* Invitation Styles */
.invitation-section {
  grid-column: 1 / -1;
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  border: 1px solid var(--invitation-color);
}

.invitation-title {
  color: var(--invitation-color);
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
  border-bottom: 2px solid var(--invitation-color);
  padding-bottom: 0.5rem;
}

.invitation-story {
  background-color: rgba(29, 233, 182, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  line-height: 1.8;
  font-style: italic;
  position: relative;
}

.invitation-story::before,
.invitation-story::after {
  content: '"';
  font-size: 3em;
  color: var(--invitation-color);
  opacity: 0.5;
  position: absolute;
}

.invitation-story::before {
  top: -10px;
  left: 5px;
}

.invitation-story::after {
  bottom: -30px;
  right: 5px;
}

/* Palutena's Guidance Styles */
.guidance-section {
  grid-column: 1 / -1;
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  border: 1px solid var(--guidance-color);
}

.guidance-title {
  color: var(--guidance-color);
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
  border-bottom: 2px solid var(--guidance-color);
  padding-bottom: 0.5rem;
}

.guidance-conversation {
  background-color: rgba(66, 165, 245, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
}

.dialogue {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.speaker {
  font-weight: bold;
  color: var(--guidance-color);
  min-width: 80px;
  margin-right: 1rem;
}

.dialogue-text {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.8rem;
  border-radius: 8px;
  flex: 1;
  position: relative;
}

.dialogue-text::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 15px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid rgba(255, 255, 255, 0.05);
}

/* Reveal Trailer Styles */
.reveal-trailer-section {
  grid-column: 1 / -1;
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  border: 1px solid #ff4081;
}

.reveal-trailer-title {
  color: #ff4081;
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
  border-bottom: 2px solid #ff4081;
  padding-bottom: 0.5rem;
}

.trailer-content {
  background-color: rgba(255, 64, 129, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  line-height: 1.8;
}

.scene-marker {
  color: #ff4081;
  font-weight: bold;
  text-transform: uppercase;
  margin: 1.5rem 0 0.5rem 0;
  font-size: 0.9em;
  letter-spacing: 1px;
}

.scene-desc {
  margin-bottom: 1rem;
  font-style: italic;
}

.scene-dialogue {
  padding-left: 1rem;
  border-left: 3px solid rgba(255, 64, 129, 0.5);
  margin: 0.5rem 0;
}

.credits-banner {
  text-align: center;
  background: linear-gradient(135deg, #ff4081, #880e4f);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 2rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.credits-banner a {
  color: white;
  text-decoration: none;
}

.credits-banner a:hover {
  text-decoration: underline;
}

/* Character Changelog Styles */
.changelog-section {
  grid-column: 1 / -1;
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  border: 1px solid #4caf50;
}

.changelog-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.changelog-entry {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.changelog-entry:hover {
  transform: translateX(5px);
}

.changelog-entry::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, transparent 50%, rgba(76, 175, 80, 0.2) 50%);
}

.changelog-version {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(76, 175, 80, 0.3);
}

.version-number {
  font-size: 1.4em;
  font-weight: bold;
  color: #4caf50;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.version-date {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.changelog-changes {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.change-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  transition: background-color 0.2s;
}

.change-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.change-bullet {
  color: #4caf50;
  font-size: 1.2em;
  min-width: 24px;
}

.developer-notes {
  margin-top: 1rem;
  padding: 1rem;
  background-color: rgba(33, 150, 243, 0.1);
  border-radius: 4px;
  font-style: italic;
}

.notes-label {
  color: #2196f3;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Roster Styles */
.roster-section {
  margin-top: 2rem;
}

.roster-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.roster-card {
  background-color: var(--roster-card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
}

.roster-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.roster-card-icon {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--roster-accent), rgba(0, 0, 0, 0.6));
}

.roster-card-icon svg {
  width: 60px;
  height: 60px;
  fill: white;
}

.roster-card-content {
  padding: 1rem;
}

.roster-card-name {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.roster-card-tagline {
  font-size: 0.85rem;
  color: var(--final-smash-color);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.roster-card-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.roster-card-actions button {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
}

.view-btn {
  background-color: var(--secondary-color);
}

.view-btn:hover {
  background-color: #448aff;
}

.delete-btn {
  background-color: #f44336;
}

.delete-btn:hover {
  background-color: #e53935;
}

.roster-empty-state {
  text-align: center;
  padding: 3rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  font-style: italic;
}

.save-success {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--save-btn-color);
  color: white;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: fadeOut 3s forwards;
  z-index: 100;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

/* Mechanic Toggle Styles */
.toggle-container {
  display: flex;
  align-items: center;
}

.mechanic-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  background-color: var(--card-bg);
  border-radius: 4px;
  transition: background-color 0.2s;
}

.mechanic-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mechanic-toggle input[type="checkbox"] {
  appearance: none;
  width: 40px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  position: relative;
  transition: background-color 0.3s;
}

.mechanic-toggle input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

.mechanic-toggle input[type="checkbox"]:checked {
  background-color: var(--primary-color);
}

.mechanic-toggle input[type="checkbox"]:checked::before {
  transform: translateX(20px);
}

.toggle-label {
  color: var(--text-color);
  font-size: 0.9rem;
}

.toggle-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--text-color);
  opacity: 0.7;
  cursor: help;
}

.toggle-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--card-bg);
  color: var(--text-color);
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  width: 200px;
  text-align: center;
  transition: opacity 0.3s;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--card-bg) transparent transparent transparent;
}

/* Custom Mechanic Section Styles */
.mechanic-section {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #6200ea, #3700b3);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.mechanic-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.mechanic-title {
  color: white;
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.mechanic-content {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  line-height: 1.8;
  color: white;
}

.mechanic-name {
  font-size: 1.2em;
  color: #b388ff;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.mechanic-description {
  margin-bottom: 1rem;
}

.mechanic-details {
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  margin-top: 1rem;
}

.mechanic-detail-item {
  margin: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.mechanic-detail-icon {
  color: #b388ff;
  font-size: 1.2em;
  min-width: 24px;
}

.passive-talents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.passive-talents-grid .passive-talent-item {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Bonus Bonus Content Styles */
.bonus-bonus-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  background: linear-gradient(135deg, #311b92, #1a237e);
  color: white;
  padding: 20px;
  box-shadow: -4px 0 15px rgba(0,0,0,0.3);
  transition: right 0.3s ease-in-out;
  z-index: 1001;
  overflow-y: auto;
}

.bonus-bonus-panel.active {
  right: 0;
}

.exit-button-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  padding-bottom: 20px;
}

.exit-bonus-btn {
  background-color: #f44336;
  color: white;
  padding: 10px 30px;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background-color 0.3s;
  cursor: pointer;
}

.exit-bonus-btn:hover {
  background-color: #d32f2f;
}

.bonus-bonus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.bonus-bonus-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px;
}

.bonus-bonus-close:hover {
  color: #ff4081;
}

.bonus-bonus-section {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

.bonus-bonus-title {
  color: #e1bee7;
  font-size: 1.2em;
  margin-bottom: 10px;
  font-weight: bold;
}

.trophy-item {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.trophy-name {
  color: #ce93d8;
  font-weight: bold;
  margin-bottom: 8px;
}

.trophy-desc {
  font-style: italic;
  line-height: 1.6;
}

.combo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  margin-bottom: 10px;
}

.combo-input {
  color: #b39ddb;
  font-family: monospace;
  font-weight: bold;
}

.combo-detail {
  flex: 1;
}

.easter-egg-item {
  border-left: 3px solid #7e57c2;
  padding-left: 15px;
  margin-bottom: 15px;
}

.secret-item {
  background: linear-gradient(45deg, rgba(156,39,176,0.2), rgba(103,58,183,0.2));
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}

.secret-item::after {
  content: '🔍';
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0.5;
}

.special-info-section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.kirby-hat-section,
.snake-codec-section,
.arena-stage-section,
.boxing-ring-section {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.special-info-title {
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
  padding-bottom: 0.5rem;
}

.kirby-hat-section {
  border: 1px solid #ff69b4;
}

.kirby-hat-section .special-info-title {
  color: #ff69b4;
  border-bottom: 2px solid #ff69b4;
}

.kirby-content {
  background-color: rgba(255, 105, 180, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
}

.kirby-appearance,
.kirby-ability {
  margin-bottom: 1rem;
}

.kirby-description {
  font-style: italic;
  line-height: 1.6;
}

.snake-codec-section {
  border: 1px solid #98ff98;
}

.snake-codec-section .special-info-title {
  color: #98ff98;
  border-bottom: 2px solid #98ff98;
}

.codec-conversation {
  background-color: rgba(152, 255, 152, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  font-family: monospace;
}

.codec-dialogue {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.codec-speaker {
  color: #98ff98;
  font-weight: bold;
  min-width: 80px;
}

.codec-text {
  flex: 1;
  line-height: 1.5;
}

.arena-stage-section {
  border: 1px solid #ffd700;
}

.arena-stage-section .special-info-title {
  color: #ffd700;
  border-bottom: 2px solid #ffd700;
}

.arena-content {
  background-color: rgba(255, 215, 0, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
}

.arena-name {
  font-size: 1.2em;
  color: #ffd700;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.arena-description {
  line-height: 1.6;
  font-style: italic;
}

.boxing-ring-section {
  border: 1px solid #ff5722;
}

.boxing-ring-section .special-info-title {
  color: #ff5722;
  border-bottom: 2px solid #ff5722;
}

.boxing-ring-content {
  background-color: rgba(255, 87, 34, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.boxing-ring-title {
  font-size: 2em;
  color: #ff5722;
  font-weight: bold;
  margin: 1rem 0;
  font-family: "Impact", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.boxing-ring-desc {
  font-style: italic;
  margin-top: 0.5rem;
}

/* Competitive Rating Styles */
.competitive-rating-section {
  background: linear-gradient(135deg, #3949ab, #303f9f);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0 2rem 0;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.competitive-rating-section::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.rating-title {
  color: white;
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

.rating-content {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
}

.tier-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.tier-label {
  font-size: 1.2em;
  font-weight: bold;
}

.tier-value {
  font-size: 2.5em;
  font-weight: bold;
  padding: 0.5rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 3px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.rating-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.rating-column h4 {
  color: #a5d6a7;
  margin-bottom: 0.5rem;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.3rem;
}

.weaknesses-list h4 {
  color: #ef9a9a;
}

.strengths-list, .weaknesses-list {
  padding-left: 1.5rem;
}

.strengths-list li, .weaknesses-list li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.playstyle-section {
  margin: 1rem 0;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.playstyle-section h4 {
  color: #90caf9;
  margin-bottom: 0.5rem;
  font-size: 1.1em;
}

.playstyle-section p {
  line-height: 1.6;
  font-style: italic;
}

.rating-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-label {
  font-weight: bold;
  margin-right: 0.5rem;
}

.footer-value {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: bold;
}

.difficulty .footer-value {
  color: #ffcc80;
}

.viability .footer-value {
  color: #81d4fa;
}

.milestone-skin-item {
  background: linear-gradient(45deg, rgba(233,30,99,0.2), rgba(156,39,176,0.2));
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  border-left: 3px solid #9c27b0;
}

.milestone-skin-item h4 {
  color: #ec407a;
  margin-bottom: 8px;
}

.milestone-requirement {
  margin-top: 10px;
  padding: 8px;
  background-color: rgba(0,0,0,0.2);
  border-radius: 4px;
  font-size: 0.9em;
}

/* Settings Button Styles */
.settings-btn {
  background-color: #607d8b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-btn:hover {
  background-color: #455a64;
}

.settings-icon {
  min-width: 16px;
}

.settings-panel {
  position: absolute;
  top: 80px;
  right: 20px;
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  width: 300px;
  display: none;
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(-10px);
}

.settings-panel.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.settings-panel h3 {
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-settings {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.close-settings:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.settings-option {
  margin: 1rem 0;
  position: relative;
}

.settings-option.hidden {
  display: none;
}

.settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.toggle-slider {
  position: relative;
  width: 40px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  transition: background-color 0.3s;
}

.toggle-slider:before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.settings-toggle input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

.settings-toggle input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.settings-toggle input {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

.settings-label {
  margin-left: 10px;
  flex: 1;
}

.settings-tooltip {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Battle Button Styles */
.battle-btn, .thoughts-btn, .interactions-btn {
  background-color: #ffc107;
  color: #212121;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: none;
}

.battle-btn:hover, .thoughts-btn:hover, .interactions-btn:hover {
  background-color: #ffca28;
}

.thoughts-btn {
  background-color: #9c27b0;
  color: white;
}

.thoughts-btn:hover {
  background-color: #7b1fa2;
}

.interactions-btn {
  background-color: #009688;
  color: white;
}

.interactions-btn:hover {
  background-color: #00796b;
}

.battle-section {
  margin-top: 2rem;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
}

.battle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.battle-selection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.battle-fighter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.fighter-select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.vs-divider {
  font-size: 2rem;
  font-weight: bold;
  color: #ffc107;
}

.battle-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.start-battle-btn {
  background-color: #ffc107;
  color: #212121;
  font-weight: bold;
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
}

.start-battle-btn:hover {
  background-color: #ffca28;
}

.battle-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: none;
}

.result-title {
  text-align: center;
  font-size: 1.5rem;
  color: #ffc107;
  margin-bottom: 1rem;
}

.battle-commentary {
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.winner-announcement {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  padding: 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 87, 34, 0.2));
  margin-top: 1rem;
}

.loser-speech {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 1.1rem;
  font-style: italic;
  text-align: left;
  border-left: 3px solid #f44336;
}

.loser-speech h4 {
  margin-top: 0;
  color: #f44336;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.battle-fighter-info {
  text-align: center;
  font-weight: bold;
  margin-top: 0.5rem;
}

/* Fighter Thoughts Styles */
.fighter-thoughts-section {
  margin-top: 2rem;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
}

.compare-section .compare-selection,
.character-thoughts-section .thoughts-selection,
.character-interactions-section .interactions-selection {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-section .character-select,
.character-thoughts-section .character-select,
.character-interactions-section .character-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.compare-section .character-select:hover,
.character-thoughts-section .character-select:hover,
.character-interactions-section .character-select:hover {
  border-color: var(--primary-color);
}

.compare-section .character-select:focus,
.character-thoughts-section .character-select:focus,
.character-interactions-section .character-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(222, 183, 108, 0.35);
}

.compare-section h3,
.character-thoughts-section h3,
.character-interactions-section h3 {
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.unlock-item {
  background: linear-gradient(45deg, rgba(106, 27, 154, 0.2), rgba(156, 39, 176, 0.2));
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  border-left: 3px solid #9c27b0;
}

.unlock-method {
  font-weight: bold;
  color: #ba68c8;
  font-size: 1.2em;
  margin-bottom: 8px;
}

.unlock-description {
  line-height: 1.5;
  font-style: italic;
}

.thoughts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.thoughts-selection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.thoughts-fighter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.about-divider {
  font-size: 1.5rem;
  font-weight: bold;
  color: #9c27b0;
}

.thoughts-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.generate-thoughts-btn {
  background-color: #9c27b0;
  color: white;
  font-weight: bold;
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
}

.generate-thoughts-btn:hover {
  background-color: #7b1fa2;
}

.thoughts-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: none;
}

.thoughts-content {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-style: italic;
}

.thoughts-relationship {
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  padding: 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 150, 136, 0.2), rgba(33, 150, 243, 0.2));
  margin-top: 1rem;
}

.pre-battle-thoughts {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(255, 193, 7, 0.1);
  border-radius: 8px;
  border-left: 3px solid #ffc107;
}

.fighter1-thoughts, .fighter2-thoughts {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.fighter1-thoughts strong, .fighter2-thoughts strong {
  color: #ffc107;
}

.spirit-item {
  background: linear-gradient(45deg, rgba(33, 150, 243, 0.2), rgba(3, 169, 244, 0.2));
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}

.spirit-item h4 {
  color: #29b6f6;
  margin-bottom: 8px;
}

.spirit-rank {
  font-weight: bold;
  margin-bottom: 5px;
  padding: 3px 8px;
  display: inline-block;
  background-color: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.spirit-effect, .spirit-artwork {
  margin-top: 5px;
}

/* Fighter Interactions Styles */
.fighter-interactions-section {
  margin-top: 2rem;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
}

.interactions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.interactions-selection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.interactions-fighter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.interact-divider {
  font-size: 1.5rem;
  font-weight: bold;
  color: #009688;
}

.interactions-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.generate-interaction-btn {
  background-color: #009688;
  color: white;
  font-weight: bold;
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
}

.generate-interaction-btn:hover {
  background-color: #00796b;
}

.interaction-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: none;
}

.interaction-content {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-style: italic;
}

.interaction-type {
  text-align: center;
  font-size: 1.3rem;
  padding: 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 150, 136, 0.2), rgba(33, 150, 243, 0.2));
  margin-top: 1rem;
}

.interaction-scenario, .relationship-type, .friendship-status, .team-name, .standout-moment {
  margin: 0.8rem 0;
}

.standout-moment {
  font-style: italic;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  margin-top: 1rem;
}

/* Genshin character display styles */
.character-stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.stat-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.character-title {
  color: var(--secondary-color);
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.abilities-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.ability-category {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
}

.ability-category h3 {
  color: var(--primary-color);
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ability-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.ability-description {
  margin-bottom: 1rem;
  font-style: italic;
}

.ability-cooldown, .ability-energy-cost {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.ability-details {
  margin-top: 1rem;
}

.detail-item {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.passive-talent-item, .constellation-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.constellation-category {
  grid-column: 1 / -1;
}

.talent-name, .constellation-name {
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.constellation-level {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.talent-unlock {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.constellation-effect {
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--elemental-burst-color);
}

/* Bonus Content Section */
.bonus-content-section {
  margin-top: 2rem;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
}

.bonus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.bonus-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.voice-lines-section, .skins-section, .guidance-dialogue-section, .nahida-mindreading-section, .unlock-section, .spirit-section, .furniture-sets-section {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  min-height: fit-content;
  height: fit-content;
  overflow: visible;
}

/* Voice lines tabs */
.voice-lines-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.voice-lines-tab-header {
  display: inline-flex;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  padding: 0.2rem;
}

.voice-lines-tab-btn {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.voice-lines-tab-btn.active {
  background-color: rgba(222,183,108,0.18);
  color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.voice-lines-tab-content {
  margin-top: 0.2rem;
}

.voice-lines-tab-panel {
  display: none;
}

.voice-lines-tab-panel.active {
  display: block;
}

.spirit-section {
  display: none;
}

.section-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.voice-line-item {
  margin-bottom: 1rem;
  padding: 0.8rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.voice-line-context {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 0.3rem;
}

.voice-line-text {
  font-style: italic;
}

.skin-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.skin-name {
  color: var(--elemental-burst-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.skin-description {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.skin-obtain {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.dialogue-item {
  margin-bottom: 1rem;
}

.speaker {
  font-weight: bold;
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.paimon {
  color: #FFD700;
}

.lumine {
  color: #FFF59D;
}

.aether {
  color: #FFECB3;
}

.nahida {
  color: #A5D6A7;
}

.dialogue-text {
  display: inline;
  line-height: 1.6;
}

.thoughts-bubble {
  padding: 1rem;
  margin: 1rem 0;
  background-color: rgba(165, 214, 167, 0.1);
  border-left: 4px solid var(--dendro-color);
  border-radius: 4px;
  font-style: italic;
}

.thought-line {
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  line-height: 1.5;
}

.thought-line:last-child {
  margin-bottom: 0;
}

.exit-bonus-content {
  background-color: #f44336;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-top: 2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.exit-bonus-content:hover {
  background-color: #d32f2f;
}

/* Artifact recommendations styles */
.artifacts-section {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.artifact-set {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-bottom: 1rem;
}

.artifact-set-name {
  color: var(--elemental-burst-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.artifact-set-pieces {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.artifact-set-reason {
  font-style: italic;
  margin-top: 0.5rem;
}

.stat-recommendations {
  margin-top: 1.5rem;
}

.stat-category {
  margin-bottom: 1rem;
}

.stat-category-title {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.stat-item {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.spirit-item {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--anemo-color);
}

.spirit-name {
  color: var(--anemo-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.spirit-type {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.spirit-effect {
  font-style: italic;
  margin-top: 0.5rem;
}

.unlock-method {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--pyro-color);
}

.unlock-title {
  color: var(--pyro-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.unlock-description {
  font-style: italic;
  line-height: 1.5;
}

.unlock-difficulty {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.team-compositions-section {
  margin-top: 2rem;
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
}

.team-comp {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--hydro-color);
}

.team-name {
  color: var(--elemental-burst-color);
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.team-members {
  margin-bottom: 0.5rem;
}

.character-role {
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.team-synergy {
  font-style: italic;
  line-height: 1.5;
}

.scene-action {
  padding: 0.5rem;
  margin: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-style: italic;
}

.scene-tagline {
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--elemental-burst-color);
  margin: 1rem 0;
  padding: 1rem;
  background-color: rgba(255, 64, 129, 0.1);
  border-radius: 8px;
}

/* New weapon styles */
.weapon-content {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
}

.weapon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.weapon-name {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--elemental-burst-color);
}

.weapon-type {
  color: var(--secondary-color);
}

.weapon-rarity {
  background-color: rgba(255, 215, 0, 0.2);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  color: var(--elemental-burst-color);
}

.weapon-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.weapon-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-name {
  color: var(--secondary-color);
  font-weight: bold;
}

.stat-value {
  color: white;
}

.weapon-passive {
  margin: 1rem 0;
  padding: 0.8rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border-left: 3px solid var(--primary-color);
}

.passive-name {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.passive-description {
  margin-bottom: 0.5rem;
  font-style: italic;
}

.passive-effect {
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  color: var(--elemental-burst-color);
}

.weapon-lore {
  margin-top: 1rem;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  border-left: 3px solid var(--secondary-color);
}

.physical-details-section {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.physical-details-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
}

.physical-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.detail-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.detail-value {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--secondary-color);
}

.talent-level-selector {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.talent-level {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Traveler's Campfire Talk Styles */
.campfire-talk-section {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid #FFD700;
  margin-bottom: 1.5rem;
}

.campfire-talk-section .special-info-title {
  color: #FFD700;
  border-bottom: 2px solid #FFD700;
}

.campfire-talk {
  background-color: rgba(255, 215, 0, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
}

.campfire-talk::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255,193,7,0.2) 0%, transparent 70%);
  opacity: 0.5;
}

/* Harbinger Intel Styles */
.harbinger-intel-section {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid #C00000;
  margin-bottom: 1.5rem;
}

.harbinger-intel-section .special-info-title {
  color: #C00000;
  border-bottom: 2px solid #C00000;
}

.harbinger-conversation {
  background-color: rgba(192, 0, 0, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  font-family: monospace;
}

.harbinger-dialogue {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  border-left: 3px solid #C00000;
  margin-bottom: 0.6rem;
}

.harbinger-speaker {
  color: #C00000;
  font-weight: bold;
  min-width: 100px;
}

.harbinger-text {
  flex: 1;
  line-height: 1.5;
}

.element-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}

.custom-element-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary-color);
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 24px;
  height: 24px;
}

.character-vision {
  display: flex;
  align-items: center;
}

.roster-card-element {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.roster-card-element img {
  width: 100%;
  height: 100%;
}

/* Character Analysis */
.analysis-title {
  color: var(--primary-color);
  margin: 1rem 0 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.3rem;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .analysis-grid {
    grid-template-columns: 1fr;
  }
}

.analysis-card {
  background-color: rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: 8px;
}

/* Ascension Materials */
.ascension-materials-section .materials-title {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.3rem;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.material-category {
  background-color: rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: 8px;
}

.category-name {
  color: var(--secondary-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.material-item {
  padding: 0.4rem 0.6rem;
  background-color: rgba(255,255,255,0.05);
  border-radius: 4px;
  margin: 0.3rem 0;
}

.material-name {
  font-size: 0.95rem;
}

/* Character Lore Styles */
.character-lore-section {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.lore-content {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  line-height: 1.8;
}

.lore-backstory {
  margin-bottom: 1.5rem;
  font-style: italic;
}

.lore-vision-story {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  border-left: 3px solid var(--primary-color);
}

.lore-connections {
  margin-top: 1.5rem;
}

.connection-title {
  color: var(--secondary-color);
  font-weight: bold;
  margin-bottom: 0.8rem;
}

.connection-item {
  padding: 0.8rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

/* How they got to Teyvat section */
.teyvat-arrival-section {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  border: 1px solid #4caf50;
  margin-bottom: 1.5rem;
}

.teyvat-arrival-section .special-info-title {
  color: #4caf50;
  border-bottom: 1px solid #4caf50;
}

.teyvat-arrival-content {
  background-color: rgba(76, 175, 80, 0.1);
  padding: 1.5rem;
  border-radius: 4px;
  font-style: italic;
  line-height: 1.8;
}

.origin-title {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 0.4rem;
}

.origin-story {
  line-height: 1.7;
  font-style: italic;
}

.abyss-conversation {
  background-color: rgba(192,0,0,0.1);
  padding: 1rem;
  border-radius: 8px;
}

.abyss-dialogue {
  display: flex;
  gap: 0.8rem;
  padding: 0.5rem;
  background-color: rgba(0,0,0,0.3);
  border-left: 3px solid #C00000;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.abyss-speaker {
  color: #C00000;
  font-weight: bold;
  min-width: 100px;
}

.abyss-text {
  flex: 1;
  line-height: 1.5;
}

#furnitureSets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.furniture-item {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1rem;
  transition: border-color .2s, box-shadow .2s;
}

.furniture-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.furniture-name {
  color: var(--elemental-burst-color);
  font-weight: 700;
  margin-bottom: .3rem;
}

.furniture-description {
  font-style: italic;
  color: rgba(255,255,255,0.85);
  margin-bottom: .4rem;
}

.furniture-bonus {
  display: inline-block;
  background-color: rgba(222,183,108,0.15);
  border: 1px solid rgba(222,183,108,0.35);
  color: var(--primary-color);
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .85rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0.5rem;
  }
  
  .roster-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .roster-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .input-section input[type="text"],
  .input-section textarea {
    width: 100%;
    max-width: 100%;
  }
  
  .character-stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .moveset-container,
  .bonus-content,
  .abilities-container,
  .special-info-section {
    grid-template-columns: 1fr;
  }
  
  .compare-selection,
  .thoughts-selection,
  .interactions-selection {
    flex-direction: column;
  }
  
  .vs-divider,
  .about-divider,
  .interact-divider {
    margin: 1rem 0;
  }
  
  .settings-panel {
    width: 90%;
    right: 5%;
    left: 5%;
  }
  
  .about-divider,
  .interact-divider {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
    margin: 1rem 0;
  }
}

.story-quest-section {
  background-color: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid var(--secondary-color);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.story-quest-section .section-title {
  color: var(--secondary-color);
  border-bottom: 2px solid rgba(255,255,255,0.08);
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
}

#storyQuest > p {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 0.8rem;
  margin: 0.6rem 0 1rem;
}

.story-chapters {
  counter-reset: chap;
  display: grid;
  gap: 0.9rem;
}

.story-chapter {
  position: relative;
  padding: 0.9rem 0.9rem 0.9rem 4.2rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  border-left: 2px solid rgba(255,255,255,0.12);
}

.story-chapter::before {
  counter-increment: chap;
  content: "Ch." counter(chap);
  position: absolute;
  left: 0.8rem;
  width: 2.4rem;
  text-align: center;
  background: rgba(222,183,108,0.15);
  color: var(--primary-color);
  border: 1px solid rgba(222,183,108,0.35);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
}

.story-chapter h4 {
  margin: 0 0 0.4rem;
  color: var(--elemental-burst-color);
  font-size: 1.05rem;
}

.story-chapter ul {
  margin: 0; padding-left: 1rem;
}

.story-chapter li {
  margin: 0.25rem 0;
  padding-left: 0.4rem;
  list-style: none;
  position: relative;
}

.story-chapter li::before {
  content: "•";
  position: absolute;
  left: -0.6rem; top: 0;
  color: var(--secondary-color);
  font-weight: 900;
}

.story-rewards {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(255,255,255,0.15);
}

.story-rewards h4 {
  color: var(--primary-color);
  margin: 0 0 0.6rem;
}

.story-rewards ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: 0;
  margin: 0;
}

.story-rewards li {
  list-style: none;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76,175,80,0.35);
  color: #a5d6a7;
  font-weight: 600;
  font-size: 0.92rem;
}

.story-rewards li:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.25); }