:root {
  /* Logo maximum width set to 12000px to support full resolution display (12000 x 2482 pixels)
     while maintaining responsive scaling on smaller devices */
  --logo-max-width: 12000px;
}

.base {
  /* Base styles go here */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Utility class for hiding elements */
.form-group.hidden,
.adventure-step.hidden,
.sound-icon.hidden,
div.hidden,
section.hidden,
.hidden {
  display: none;
}

/* Apply dark charcoal background to body */
body {
  background-color: #1a1a1a;
  color: #ffffff;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Sticky navigation header container */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #1a1a1a;
  padding: 15px 20px;
  z-index: 1000;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sticky-header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.sticky-header nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.sticky-header nav a:hover {
  background-color: #333;
}

.header-logo {
  height: 40px;
  width: auto;
}

/* Header logo link wrapper */
.header-logo-link {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-logo-link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Home icon navigation link */
.nav-home {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px !important;
}

.nav-home svg {
  stroke: #ffffff;
  transition: stroke 0.3s ease;
}

.nav-home:hover svg {
  stroke: #9acd32;
}

/* Background Slideshow (Full-page) */
.background-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* Slides */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Logo Overlay */
.logo-overlay {
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-logo {
  max-width: var(--logo-max-width);
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.9));
}

/* Navigation Arrows */
.slide-nav {
  position: fixed;
  top: 35%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 24px;
  padding: 15px 20px;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  border-radius: 4px;
  font-weight: bold;
  line-height: 1;
}

.slide-nav:hover {
  background-color: rgba(0, 0, 0, 0.8);
  border-color: #9acd32;
  color: #9acd32;
  transform: translateY(-50%) scale(1.1);
}

.slide-nav.prev {
  left: 20px;
}

.slide-nav.next {
  right: 20px;
}

/* Main content positioned above background (only for pages with background slideshow) */
body:has(.background-slideshow) main {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding-bottom: 20px;
}

/* Responsive slideshow */
@media (max-width: 768px) {
  .slideshow-logo {
    max-width: var(--logo-max-width);
    width: 100%;
  }
  
  .slide-nav {
    font-size: 18px;
    padding: 10px 15px;
  }
  
  .slide-nav.prev {
    left: 10px;
  }
  
  .slide-nav.next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .slideshow-logo {
    max-width: var(--logo-max-width);
    width: 100%;
  }
  
  .slide-nav {
    font-size: 16px;
    padding: 8px 12px;
  }
}

/* TTRPG Button Section */
.ttrpg-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
}

.ttrpg-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease;
  max-width: 180px;
}

.ttrpg-button:hover {
  transform: scale(1.05);
}

.ttrpg-button img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ttrpg-button:hover img {
  border-color: #666;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.ttrpg-button span {
  margin-top: 12px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  max-width: 160px;
}

/* Button reset for ttrpg-button when used as button */
button.ttrpg-button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Modal Overlay Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  visibility: hidden;
  transition: background-color 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  background-color: rgba(0, 0, 0, 0.85);
  visibility: visible;
}

.modal-content {
  background-color: #2a2a2a;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  opacity: 1;
  transform: scale(1);
}

.modal-content h2 {
  color: #ffffff;
  margin-bottom: 30px;
  font-size: 24px;
}

.modal-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-btn {
  display: inline-block;
  padding: 15px 40px;
  background-color: #8b0000;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-btn:hover {
  background-color: #a50000;
  transform: scale(1.05);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #999;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #ffffff;
}

/* Embers Background Video */
.embers-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Burn Transition Overlay */
.burn-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.burn-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.burn-transition-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Create Character Page Styles */
.create-character-main {
  position: relative;
  z-index: 1;
  padding: 94px 20px 20px 20px;
  min-height: calc(100vh - 80px);
  font-family: 'Special Elite', cursive;
}

.create-character-main h1 {
  text-align: center;
  margin-bottom: 10px;
  font-family: 'Special Elite', cursive;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.create-character-main > p {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  font-family: 'Special Elite', cursive;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.character-form-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 40px;
  border-radius: 0;
  backdrop-filter: none;
}

.character-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: bold;
  color: #ffffff;
  font-family: 'Syne Mono', monospace;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.form-group input,
.form-group select {
  padding: 12px;
  border-radius: 4px;
  border: 1px solid rgba(74, 93, 35, 0.6);
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 16px;
  font-family: 'Syne Mono', monospace;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #6b8e23;
  box-shadow: 0 0 10px rgba(107, 142, 35, 0.4);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Syne Mono', monospace;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.btn {
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-family: 'Syne Mono', monospace;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-primary {
  background-color: rgba(85, 107, 47, 0.8);
  color: #ffffff;
  border: 1px solid #6b8e23;
  box-shadow: 0 0 15px rgba(107, 142, 35, 0.3);
}

.btn-primary:hover {
  background-color: rgba(107, 142, 35, 0.9);
  box-shadow: 0 0 20px rgba(107, 142, 35, 0.5);
  transform: scale(1.05);
}

.btn-primary:disabled {
  background-color: rgba(85, 107, 47, 0.3);
  border-color: rgba(107, 142, 35, 0.3);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-danger {
  background-color: rgba(139, 0, 0, 0.7);
  color: #ffffff;
  border: 1px solid rgba(178, 34, 34, 0.8);
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.3);
}

.btn-danger:hover {
  background-color: rgba(178, 34, 34, 0.9);
  box-shadow: 0 0 15px rgba(178, 34, 34, 0.5);
  transform: scale(1.05);
}

.btn-secondary {
  background-color: rgba(139, 69, 19, 0.6);
  color: #ffffff;
  border: 1px solid rgba(160, 82, 45, 0.8);
}

.btn-secondary:hover {
  background-color: rgba(160, 82, 45, 0.8);
  transform: scale(1.05);
}

/* Sound Toggle Button */
.sound-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(42, 42, 42, 0.9);
  border: 2px solid #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.sound-toggle:hover {
  background-color: rgba(60, 60, 60, 0.9);
  border-color: #8b0000;
  transform: scale(1.1);
}

.sound-icon {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.sound-icon.hidden {
  display: none;
}

/* Adventure Step Styles */
.adventure-step {
  animation: fadeIn 0.8s ease-in-out;
}

.adventure-step.hidden {
  display: none;
}

.adventure-step.fade-out {
  animation: fadeOut 0.5s ease-in-out forwards;
}

/* Sticky container for both prompt and question */
.sticky-question-container {
  position: sticky;
  top: 70px;
  z-index: 10;
  background: linear-gradient(to bottom, transparent 0%, rgba(20, 10, 5, 1) 100%);
  padding: 15px 0 20px 0;
  margin-bottom: 20px;
}

.adventure-prompt {
  font-style: italic;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.8;
  font-size: 18px;
  font-family: 'Syne Mono', monospace;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  opacity: 0.9;
}

.adventure-question {
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 0;
  line-height: 1.5;
  font-family: 'Syne Mono', monospace;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Gender Choice Buttons - Apocalypse Theme */
.gender-choices {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px;
  justify-content: center;
}

@media (max-width: 600px) {
  .gender-choices {
    grid-template-columns: repeat(2, auto);
  }
}

.choice-btn {
  padding: 12px 24px;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(107, 142, 35, 0.6);
  border-radius: 4px;
  font-size: 16px;
  font-family: 'Syne Mono', monospace;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.choice-btn:hover {
  background-color: rgba(107, 142, 35, 0.3);
  border-color: #6b8e23;
  box-shadow: 0 0 15px rgba(107, 142, 35, 0.4);
  transform: scale(1.05);
}

.choice-btn.selected {
  background-color: rgba(85, 107, 47, 0.7);
  border-color: #9acd32;
  box-shadow: 0 0 20px rgba(154, 205, 50, 0.5);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Birthdate Input Wrapper */
.birthdate-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.birthdate-input-wrapper input[type="date"] {
  flex: 1;
}

.btn-manual-select {
  padding: 10px 12px;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(107, 142, 35, 0.6);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-manual-select:hover {
  background-color: rgba(107, 142, 35, 0.3);
  border-color: #6b8e23;
  box-shadow: 0 0 10px rgba(107, 142, 35, 0.4);
}

.btn-manual-select svg {
  stroke: #ffffff;
}

/* Auspice Result Display */
.auspice-result {
  margin-top: 15px;
  padding: 15px;
  background-color: rgba(107, 142, 35, 0.2);
  border: 1px solid rgba(107, 142, 35, 0.5);
  border-radius: 4px;
  color: #ffffff;
  font-family: 'Special Elite', cursive;
  font-size: 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.auspice-result.show {
  opacity: 1;
  transform: translateY(0);
}

/* Auspice Choice Buttons */
.auspice-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 15px;
}

.auspice-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 20px;
  min-width: 120px;
}

.auspice-choice .moon-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.auspice-choice .auspice-name {
  font-size: 16px;
  font-weight: bold;
}

.auspice-choice .moon-phase {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}

/* Back to Birthdate Button */
.btn-back-to-birthdate {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Special Elite', cursive;
  font-size: 14px;
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s ease;
}

.btn-back-to-birthdate:hover {
  color: #ffffff;
}

/* Date Input Styling */
input[type="date"] {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* Attribute Choice Buttons */
.attribute-choices {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}

.attribute-choices.multi-select {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (max-width: 768px) {
  .attribute-choices.multi-select {
    grid-template-columns: 1fr;
  }
}

.attribute-choices .choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  text-align: left;
}

.attribute-choices .choice-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #9acd32;
}

.attribute-choices .choice-desc {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.5;
}

.attribute-choices.multi-select .choice-btn.selected {
  background-color: rgba(85, 107, 47, 0.7);
  border-color: #9acd32;
}

/* Selection Counter */
.selection-counter {
  text-align: center;
  font-size: 16px;
  color: #9acd32;
  margin-bottom: 15px;
  font-family: 'Special Elite', cursive;
}

.selection-info {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  font-family: 'Special Elite', cursive;
  font-style: italic;
}

/* Character Summary */
.character-summary {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(107, 142, 35, 0.5);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
}

.summary-section {
  margin-bottom: 25px;
}

.summary-section:last-child {
  margin-bottom: 0;
}

.summary-section h3 {
  font-size: 28px;
  color: #9acd32;
  margin: 0 0 5px 0;
  font-family: 'Special Elite', cursive;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.summary-section h4 {
  font-size: 20px;
  color: #ffffff;
  margin: 0 0 15px 0;
  font-family: 'Special Elite', cursive;
  border-bottom: 1px solid rgba(107, 142, 35, 0.5);
  padding-bottom: 10px;
}

.summary-section h5 {
  font-size: 16px;
  color: #9acd32;
  margin: 0 0 10px 0;
  font-family: 'Special Elite', cursive;
}

.summary-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-family: 'Special Elite', cursive;
}

.attribute-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.attr-category {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 6px;
}

.attr-item {
  font-family: 'Special Elite', cursive;
  font-size: 14px;
  margin-bottom: 8px;
  padding: 5px 0;
}

.attr-item.primary {
  color: #ffd700;
}

.attr-item.secondary {
  color: #9acd32;
}

.attr-item.tertiary {
  color: #ffffff;
}

.attr-item.weak {
  color: rgba(255, 255, 255, 0.5);
}

/* Tribe Questionnaire Styles */
.tribe-progress {
  text-align: center;
  font-size: 14px;
  color: #9acd32;
  margin-bottom: 20px;
  font-family: 'Special Elite', cursive;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tribe-question-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.tribe-answer-btn {
  padding: 15px 20px;
  text-align: left;
  line-height: 1.5;
  font-size: 15px;
}

.tribe-answer-btn:hover {
  transform: translateX(5px);
}

.tribe-answer-btn.selected {
  background-color: rgba(85, 107, 47, 0.7);
  border-color: #9acd32;
  box-shadow: 0 0 20px rgba(154, 205, 50, 0.5);
}

/* Tribe Result Styles */
.tribe-result-single,
.tribe-result-tie {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(107, 142, 35, 0.5);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
}

.tribe-result-single .tribe-name,
.tribe-result-tie h3 {
  font-size: 28px;
  color: #9acd32;
  margin: 0 0 15px 0;
  font-family: 'Special Elite', cursive;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.tribe-result-single .tribe-score {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  font-style: italic;
}

.tribe-result-single .tribe-description {
  font-size: 16px;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: left;
}

.tribe-result-single .tribe-values {
  font-size: 14px;
  color: #9acd32;
  text-align: left;
}

.tribe-tie-intro {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  line-height: 1.6;
}

.tribe-tie-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tribe-tie-choice {
  padding: 20px;
  text-align: left;
}

.tribe-tie-choice .choice-title {
  font-size: 20px;
  color: #9acd32;
  display: block;
  margin-bottom: 10px;
}

.tribe-tie-choice .choice-desc {
  font-size: 14px;
  line-height: 1.6;
  display: block;
  margin-bottom: 10px;
}

.tribe-tie-choice .tribe-values-small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  display: block;
}

.tribe-tie-choice.selected {
  background-color: rgba(85, 107, 47, 0.7);
  border-color: #9acd32;
  box-shadow: 0 0 20px rgba(154, 205, 50, 0.5);
}

/* Skills Questionnaire Styles */
.skill-type-details {
  display: block;
  font-size: 12px;
  color: rgba(154, 205, 50, 0.8);
  margin-top: 8px;
  font-style: italic;
}

.skill-progress {
  text-align: center;
  font-size: 14px;
  color: #9acd32;
  margin-bottom: 10px;
  font-family: 'Special Elite', cursive;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.skill-points-remaining {
  text-align: center;
  font-size: 16px;
  color: #ffd700;
  margin-bottom: 20px;
  font-family: 'Special Elite', cursive;
}

.skill-question-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-answer-btn {
  padding: 15px 20px;
  text-align: left;
  line-height: 1.5;
  font-size: 15px;
}

.skill-answer-btn:hover {
  transform: translateX(5px);
}

.skill-answer-btn.selected {
  background-color: rgba(85, 107, 47, 0.7);
  border-color: #9acd32;
  box-shadow: 0 0 20px rgba(154, 205, 50, 0.5);
}

.skill-answer-btn .choice-text {
  display: block;
  margin-bottom: 8px;
}

.skill-answer-btn .skill-hints {
  display: block;
  font-size: 12px;
  color: rgba(154, 205, 50, 0.7);
  font-style: italic;
}

/* Skills Result Styles */
.skills-result-container {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(107, 142, 35, 0.5);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.skill-category {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 6px;
}

.skill-category h5 {
  font-size: 16px;
  color: #9acd32;
  margin: 0 0 10px 0;
  font-family: 'Special Elite', cursive;
  border-bottom: 1px solid rgba(107, 142, 35, 0.5);
  padding-bottom: 8px;
}

.skill-item {
  font-family: 'Special Elite', cursive;
  font-size: 14px;
  margin-bottom: 8px;
  padding: 5px 0;
}

.skill-item.expert {
  color: #ffd700;
}

.skill-item.high {
  color: #9acd32;
}

.skill-item.medium {
  color: #ffffff;
}

.skill-item.low {
  color: rgba(255, 255, 255, 0.7);
}

/* Backstory Styles */
.backstory-container {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(107, 142, 35, 0.5);
  border-radius: 8px;
  padding: 25px;
}

.backstory-container h4 {
  font-size: 20px;
  color: #9acd32;
  margin: 0 0 15px 0;
  font-family: 'Special Elite', cursive;
}

.backstory-text {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(107, 142, 35, 0.3);
  border-radius: 4px;
  padding: 15px;
  min-height: 150px;
  font-family: 'Special Elite', cursive;
  font-size: 14px;
  line-height: 1.8;
  color: #ffffff;
  white-space: pre-wrap;
}

.backstory-text:focus {
  outline: none;
  border-color: #9acd32;
  box-shadow: 0 0 10px rgba(154, 205, 50, 0.3);
}

.backstory-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 10px;
  font-style: italic;
  text-align: center;
}

.backstory-display {
  font-family: 'Special Elite', cursive;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.backstory-display p {
  margin-bottom: 15px;
}

.backstory-display p:last-child {
  margin-bottom: 0;
}

/* =========================
   Account Page Styles
   ========================= */

.account-main {
  padding: 120px 20px 40px 20px;
  min-height: calc(100vh - 80px);
  font-family: 'Special Elite', cursive;
}

.account-section {
  max-width: 1200px;
  margin: 0 auto;
}

.account-section h1 {
  text-align: center;
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.account-section .subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  margin-bottom: 40px;
}

/* Auth Container */
.auth-container {
  max-width: 450px;
  margin: 0 auto;
}

.auth-form-wrapper {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(107, 142, 35, 0.5);
  border-radius: 12px;
  padding: 35px;
}

.auth-form-wrapper h2 {
  text-align: center;
  color: #9acd32;
  margin: 0 0 25px 0;
  font-size: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.link-btn {
  background: none;
  border: none;
  color: #9acd32;
  cursor: pointer;
  font-family: 'Special Elite', cursive;
  font-size: 14px;
  text-decoration: underline;
  padding: 0;
}

.link-btn:hover {
  color: #b8e23b;
}

.forgot-password {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}

.security-question-display {
  background-color: rgba(154, 205, 50, 0.1);
  border: 1px solid rgba(154, 205, 50, 0.3);
  border-radius: 6px;
  padding: 12px;
  color: #ffffff;
  font-style: italic;
  margin-top: 5px;
}

/* User View */
.user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.user-header h1 {
  margin: 0;
  text-align: left;
}

/* Account Content Grid */
.account-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.account-card {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(107, 142, 35, 0.5);
  border-radius: 12px;
  padding: 25px;
}

.account-card h3 {
  color: #9acd32;
  margin: 0 0 20px 0;
  font-size: 20px;
  border-bottom: 1px solid rgba(107, 142, 35, 0.3);
  padding-bottom: 10px;
}

.profile-info p {
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.9);
}

.profile-info strong {
  color: #9acd32;
}

/* Systems List */
.systems-list {
  margin-bottom: 20px;
}

.system-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 10px;
}

.system-icon {
  font-size: 28px;
}

.system-info {
  display: flex;
  flex-direction: column;
}

.system-name {
  color: #ffffff;
  font-size: 16px;
}

.character-count {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.total-characters {
  text-align: right;
  padding-top: 15px;
  border-top: 1px solid rgba(107, 142, 35, 0.3);
  color: #9acd32;
  margin-top: 10px;
}

/* Campaigns List */
.campaigns-list {
  margin-bottom: 20px;
}

.campaign-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 10px;
}

.campaign-info {
  display: flex;
  flex-direction: column;
}

.campaign-info .campaign-name {
  color: #ffffff;
  font-size: 16px;
}

.campaign-role {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.campaign-system {
  color: #9acd32;
  font-size: 13px;
}

.empty-state {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  text-align: center;
  padding: 20px;
}

.card-actions {
  text-align: center;
  margin-top: 15px;
}

/* Active nav link */
.sticky-header nav a.active {
  background-color: rgba(107, 142, 35, 0.4);
  border-bottom: 2px solid #9acd32;
}

/* =========================
   Characters Page Styles
   ========================= */

.characters-main {
  padding: 94px 20px 40px 20px;
  min-height: calc(100vh - 80px);
  font-family: 'Special Elite', cursive;
  max-width: 1400px;
  margin: 0 auto;
}

.characters-header {
  text-align: center;
  margin-bottom: 40px;
}

.characters-header h1 {
  font-size: 36px;
  color: #ffffff;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.characters-header .subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

/* Login Prompt */
.login-prompt {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.prompt-content {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(107, 142, 35, 0.5);
  border-radius: 12px;
  padding: 50px;
}

.prompt-content h2 {
  color: #9acd32;
  margin: 0 0 15px 0;
}

.prompt-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.filter-group select {
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid rgba(107, 142, 35, 0.5);
  background-color: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-family: 'Special Elite', cursive;
  cursor: pointer;
}

.filter-group select:focus {
  outline: none;
  border-color: #9acd32;
}

/* Characters Grid */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.character-card {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(107, 142, 35, 0.5);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.character-card .card-header {
  background-color: var(--system-color, #6b8e23);
  padding: 12px 15px;
}

.system-badge {
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
}

.character-card .card-body {
  padding: 20px;
}

.character-card .character-name {
  color: #ffffff;
  font-size: 22px;
  margin: 0 0 15px 0;
}

.character-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.detail-item {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.campaign-badge {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.campaign-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.campaign-badge .campaign-name {
  color: #9acd32;
  font-size: 13px;
}

.character-card .card-footer {
  padding: 15px 20px;
  border-top: 1px solid rgba(107, 142, 35, 0.3);
  text-align: center;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.character-card .card-footer .btn {
  flex: 1;
  max-width: 120px;
}

/* Empty Characters State */
.empty-characters {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.empty-content {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(107, 142, 35, 0.3);
  border-radius: 12px;
  padding: 50px;
}

.empty-icon {
  font-size: 60px;
  display: block;
  margin-bottom: 20px;
}

.empty-content h3 {
  color: #9acd32;
  margin: 0 0 15px 0;
  font-size: 24px;
}

.empty-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
}

/* Character Detail Modal */
.character-detail-modal {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}

.character-detail-header {
  background-color: var(--system-color, #6b8e23);
  padding: 30px;
  text-align: center;
}

.character-detail-header h2 {
  color: #ffffff;
  margin: 10px 0 5px;
  font-size: 28px;
}

.character-subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 16px;
}

.character-detail-body {
  padding: 30px;
}

.detail-section {
  margin-bottom: 30px;
}

.detail-section h4 {
  color: #9acd32;
  margin: 0 0 15px 0;
  font-size: 18px;
  border-bottom: 1px solid rgba(107, 142, 35, 0.3);
  padding-bottom: 8px;
}

.attributes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.character-detail-body .attr-category,
.character-detail-body .skill-category {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 6px;
}

.character-detail-body .attr-category h5,
.character-detail-body .skill-category h5 {
  color: #9acd32;
  margin: 0 0 10px 0;
  font-size: 14px;
}

.character-detail-body .attr-item,
.character-detail-body .skill-item {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
}

.backstory-content {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.backstory-content p {
  margin-bottom: 15px;
}

.created-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .user-header {
    flex-direction: column;
    text-align: center;
  }
  
  .user-header h1 {
    text-align: center;
  }
  
  .account-content {
    grid-template-columns: 1fr;
  }
  
  .filter-bar {
    flex-direction: column;
  }
  
  .characters-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== TRIBE-THEMED CHARACTER SHEET STYLES ===== */

.character-sheet {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.sheet-header {
  padding: 25px;
  text-align: left;
  border-bottom: 3px solid var(--tribe-accent, #9acd32);
}

/* 3-Column Header Layout */
.sheet-header-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 150px;
  gap: 25px;
  align-items: start;
}

.header-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header-column-1 {
  /* Name, Age/Gender, Concept */
}

.header-column-2 {
  /* Tribe, Patron, Auspice */
}

.header-column-3 {
  /* Character portrait */
  justify-content: center;
  align-items: center;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.header-name-row {
  margin-bottom: 5px;
}

.header-character-name {
  font-size: 28px;
  font-weight: bold;
  font-family: 'Special Elite', cursive;
  color: var(--tribe-accent, #9acd32);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.header-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.header-value {
  color: #ffffff;
  font-size: 14px;
}

.header-input {
  flex: 1;
  min-width: 100px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  padding: 2px 0;
  outline: none;
  transition: border-color 0.3s ease;
}

.header-input:focus {
  border-bottom-color: var(--tribe-accent, #9acd32);
}

.header-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  font-size: 12px;
}

/* Character Portrait */
.character-portrait-container {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--tribe-accent, #9acd32);
  background: rgba(0, 0, 0, 0.3);
}

.character-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auspice-moon-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: var(--tribe-accent, #9acd32);
}

.moon-phase {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
}

.moon-svg {
  width: 100%;
  height: 100%;
}

.moon-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.portrait-upload-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.portrait-upload-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: var(--tribe-accent, #9acd32);
}

.upload-icon {
  font-size: 14px;
}

/* Responsive header */
@media (max-width: 700px) {
  .sheet-header-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .header-column-3 {
    order: -1;
    margin: 0 auto;
  }
  
  .header-character-name {
    font-size: 24px;
  }
}

/* Old header form styles (keeping for compatibility) */
.sheet-header-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.header-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-form-label {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Special Elite', cursive;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 100px;
  flex-shrink: 0;
}

.header-form-value {
  color: #ffffff;
  font-size: 16px;
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 4px;
  min-height: 24px;
}

.header-form-value.header-form-name {
  font-size: 22px;
  font-weight: bold;
  font-family: 'Special Elite', cursive;
  color: var(--tribe-accent, #9acd32);
}

.header-form-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-family: 'Special Elite', cursive;
  font-size: 14px;
  padding: 4px 0;
  outline: none;
  transition: border-color 0.3s ease;
}

.header-form-input:focus {
  border-bottom-color: var(--tribe-accent, #9acd32);
}

.header-form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.sheet-title-section {
  margin-bottom: 20px;
}

.tribe-symbol {
  font-size: 48px;
  margin-bottom: 10px;
  text-shadow: 0 0 20px var(--tribe-accent, #9acd32);
}

.sheet-character-name {
  color: #ffffff;
  font-size: 32px;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: 'Special Elite', cursive;
}

.sheet-subtitle {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.tribe-badge {
  display: inline-block;
  padding: 5px 15px;
  border: 2px solid;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sheet-identity-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.identity-item {
  text-align: center;
}

.identity-label {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.identity-value {
  display: block;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
}

.sheet-body {
  padding: 30px;
}

.sheet-section {
  margin-bottom: 30px;
}

.section-title {
  color: #ffffff;
  font-size: 20px;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid;
  font-family: 'Special Elite', cursive;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.attributes-section .attributes-grid,
.skills-section .skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.attr-category,
.skill-category {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.attr-row,
.skill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.attr-row:last-child,
.skill-row:last-child {
  border-bottom: none;
}

.attr-name,
.skill-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.attr-dots,
.skill-dots {
  font-size: 14px;
  letter-spacing: 2px;
}

.skill-empty {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  font-size: 13px;
}

.backstory-section .backstory-content {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--tribe-accent, #9acd32);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.backstory-section .backstory-content p {
  margin: 0 0 15px 0;
}

.backstory-section .backstory-content p:last-child {
  margin-bottom: 0;
}

.sheet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 15px;
}

.footer-item {
  text-align: center;
}

.footer-label {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-value {
  display: block;
  color: #ffffff;
  font-size: 14px;
}

/* Responsive character sheet */
@media (max-width: 768px) {
  .attributes-section .attributes-grid,
  .skills-section .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .sheet-identity-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .sheet-footer {
    flex-direction: column;
    text-align: center;
  }
  
  .sheet-character-name {
    font-size: 24px;
  }
}

/* Make modal wider for character sheet */
.character-detail-modal {
  max-width: 950px;
  width: 95%;
}

/* ===== BONE GNAWER TRIBE THEME ===== */

.bone-gnawer-theme {
  position: relative;
  background: 
    /* Grungy texture overlay */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E"),
    /* Main dark charcoal gradient */
    linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 20%, #252525 80%, #1a1a1a 100%);
  border: 12px solid transparent;
  border-image: linear-gradient(
    135deg,
    #8b4513 0%,
    #a0522d 15%,
    #6b3610 30%,
    #8b4513 45%,
    #cd853f 50%,
    #8b4513 55%,
    #5c3317 70%,
    #a0522d 85%,
    #8b4513 100%
  ) 1;
  box-shadow: 
    inset 0 0 100px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 0, 0, 0.8);
}

.bone-gnawer-theme::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Rat silhouettes pattern */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='60' viewBox='0 0 80 60'%3E%3Cpath fill='%23505020' fill-opacity='0.15' d='M25 30c-3-2-5-1-7 0-1 1-2 3-1 4 0 1 2 2 3 2 2 0 3-1 4-2l8-1c2 0 3 1 3 2l2 5c1 1 2 1 3 0l-1-5c0-2 1-3 3-3l5 1 2-1c1-2-1-4-3-4l-6 1c-2 0-3-1-4-2l-2-4c0-1-1-2-2-1l-1 3c-1 2-3 3-5 3l-1 2z'/%3E%3C/svg%3E"),
    /* Subtle paw prints */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='6' fill='%23404040' fill-opacity='0.1'/%3E%3Ccircle cx='40' cy='40' r='4' fill='%23404040' fill-opacity='0.08'/%3E%3Ccircle cx='60' cy='40' r='4' fill='%23404040' fill-opacity='0.08'/%3E%3Ccircle cx='35' cy='48' r='3' fill='%23404040' fill-opacity='0.06'/%3E%3Ccircle cx='65' cy='48' r='3' fill='%23404040' fill-opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.bone-gnawer-theme .sheet-header,
.bone-gnawer-theme .sheet-body {
  position: relative;
  z-index: 1;
}

.bone-gnawer-decor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

/* Torn paper edge effect - top */
.bone-gnawer-theme .torn-edge-top {
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 20px;
  background: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath fill='%238b4513' d='M0 20 L5 15 L10 18 L15 12 L20 17 L25 14 L30 19 L35 13 L40 16 L45 11 L50 18 L55 14 L60 17 L65 12 L70 16 L75 13 L80 18 L85 15 L90 17 L95 12 L100 16 L100 20 Z'/%3E%3C/svg%3E");
  background-size: 100px 20px;
  background-repeat: repeat-x;
  z-index: 10;
}

/* Torn paper edge effect - bottom */
.bone-gnawer-theme .torn-edge-bottom {
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 20px;
  background: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath fill='%238b4513' d='M0 0 L5 5 L10 2 L15 8 L20 3 L25 6 L30 1 L35 7 L40 4 L45 9 L50 2 L55 6 L60 3 L65 8 L70 4 L75 7 L80 2 L85 5 L90 3 L95 8 L100 4 L100 0 Z'/%3E%3C/svg%3E");
  background-size: 100px 20px;
  background-repeat: repeat-x;
  z-index: 10;
}

/* Skull decoration in top right corner */
.bone-gnawer-theme .skull-decor {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 70px;
  height: 80px;
  background: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 70'%3E%3Cellipse cx='30' cy='25' rx='22' ry='20' fill='%23d0c8b8' stroke='%23666' stroke-width='1'/%3E%3Ccircle cx='20' cy='22' r='8' fill='%23222'/%3E%3Ccircle cx='40' cy='22' r='8' fill='%23222'/%3E%3Cpath d='M25 38 L35 38 L32 45 L28 45 Z' fill='%23222'/%3E%3Crect x='22' y='48' width='4' height='12' fill='%23d0c8b8' stroke='%23666' stroke-width='0.5'/%3E%3Crect x='28' y='48' width='4' height='14' fill='%23d0c8b8' stroke='%23666' stroke-width='0.5'/%3E%3Crect x='34' y='48' width='4' height='11' fill='%23d0c8b8' stroke='%23666' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.85;
  filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.5));
  z-index: 5;
}

/* "Don't Trust Suits" sticker */
.bone-gnawer-theme .sticker-decor {
  position: absolute;
  top: 20px;
  left: 15px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #e6d800 0%, #ccbe00 50%, #b3a700 100%);
  color: #1a1a1a;
  font-family: 'Special Elite', cursive;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  transform: rotate(-8deg);
  box-shadow: 
    3px 3px 8px rgba(0,0,0,0.4),
    inset 0 0 10px rgba(255,255,255,0.2);
  border: 2px solid #999;
  z-index: 10;
}

/* Paw prints scattered */
.bone-gnawer-theme .paw-prints {
  position: absolute;
  top: 90px;
  right: 15px;
  width: 40px;
  height: 80px;
  background: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='18' r='6' fill='%23333'/%3E%3Ccircle cx='8' cy='10' r='3' fill='%23333'/%3E%3Ccircle cx='22' cy='10' r='3' fill='%23333'/%3E%3Ccircle cx='5' cy='16' r='2.5' fill='%23333'/%3E%3Ccircle cx='25' cy='16' r='2.5' fill='%23333'/%3E%3C/svg%3E");
  background-size: 30px 30px;
  background-repeat: repeat-y;
  opacity: 0.4;
  z-index: 3;
}

/* Tribe nameplate badge */
.bone-gnawer-theme .tribe-nameplate {
  position: absolute;
  bottom: 30px;
  right: 20px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #a0522d 0%, #8b4513 30%, #6b3610 70%, #5c3317 100%);
  color: #f5deb3;
  font-family: 'Special Elite', cursive;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  line-height: 1.1;
  border-radius: 4px;
  border: 3px solid #4a2810;
  box-shadow: 
    4px 4px 12px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.3);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  z-index: 10;
}

/* Rat silhouettes layer */
.bone-gnawer-theme .rat-silhouettes {
  position: absolute;
  bottom: 100px;
  left: 20px;
  width: 80px;
  height: 60px;
  background: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60'%3E%3Cpath fill='%23e8e0d0' d='M15 35c-2 0-4 1-5 3-1 2 0 4 2 5 1 1 3 0 4-1l5-3 15 2c3 1 5-1 5-4l-2-8c0-2 2-3 4-2l8 3 3-1c2-2 0-6-3-6l-10-1c-3 0-5 2-5 5l1 6c-1 2-3 3-6 2l-12-3c-1 0-2 1-2 2l-2 1z' opacity='0.6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.5;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
  z-index: 3;
}

/* Bone Gnawer specific header styling */
.bone-gnawer-theme .sheet-header {
  background: 
    linear-gradient(180deg, rgba(60, 50, 40, 0.9) 0%, rgba(40, 35, 30, 0.95) 100%) !important;
  border-bottom: 3px solid #a0522d !important;
}

.bone-gnawer-theme .header-character-name {
  color: #cd853f;
}

.bone-gnawer-theme .header-label {
  color: rgba(205, 133, 63, 0.8);
}

.bone-gnawer-theme .header-input {
  border-bottom-color: rgba(205, 133, 63, 0.3);
}

.bone-gnawer-theme .header-input:focus {
  border-bottom-color: #cd853f;
}

.bone-gnawer-theme .character-portrait-container {
  border-color: #a0522d;
}

.bone-gnawer-theme .auspice-moon-placeholder {
  color: #cd853f;
}

.bone-gnawer-theme .portrait-upload-btn:hover {
  border-color: #cd853f;
}

.bone-gnawer-theme .header-form-label {
  color: #cd853f;
}

.bone-gnawer-theme .header-form-value {
  border-bottom-color: rgba(205, 133, 63, 0.3);
}

.bone-gnawer-theme .header-form-value.header-form-name {
  color: #cd853f;
}

.bone-gnawer-theme .header-form-input {
  border-bottom-color: rgba(205, 133, 63, 0.3);
}

.bone-gnawer-theme .header-form-input:focus {
  border-bottom-color: #cd853f;
}

.bone-gnawer-theme .tribe-badge {
  background: linear-gradient(135deg, #6b3610 0%, #8b4513 100%);
  border-color: #cd853f !important;
  color: #f5deb3 !important;
}

.bone-gnawer-theme .section-title {
  border-bottom-color: #a0522d !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.bone-gnawer-theme .attr-category,
.bone-gnawer-theme .skill-category {
  background: rgba(60, 50, 40, 0.4);
  border-color: rgba(160, 82, 45, 0.3);
}

.bone-gnawer-theme .attr-dots,
.bone-gnawer-theme .skill-dots {
  color: #cd853f !important;
}

.bone-gnawer-theme .editable-dots .dot {
  color: #cd853f !important;
}

.bone-gnawer-theme .editable-textarea,
.bone-gnawer-theme .gift-rite-input,
.bone-gnawer-theme .advantage-flaw-input {
  background: rgba(60, 50, 40, 0.5);
  border-color: rgba(160, 82, 45, 0.4);
}

.bone-gnawer-theme .btn-add-row {
  background: rgba(139, 69, 19, 0.4);
  border-color: rgba(160, 82, 45, 0.6);
  color: #d4a574;
}

.bone-gnawer-theme .btn-add-row:hover {
  background: rgba(139, 69, 19, 0.6);
  border-color: #a0522d;
}

.bone-gnawer-theme .backstory-content,
.bone-gnawer-theme .history-content {
  border-left-color: #a0522d !important;
  background: rgba(60, 50, 40, 0.3);
}

/* ===== EDITABLE CHARACTER SHEET SECTIONS ===== */

/* Renown Section */
.renown-section .renown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.renown-item,
.tracker-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.renown-name,
.tracker-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: bold;
}

/* Harano & Hauglosk Section */
.harano-hauglosk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Rage Section */
.rage-section .rage-grid {
  display: flex;
  justify-content: center;
}

.rage-section .rage-tracker {
  min-width: 300px;
  background-color: rgba(220, 20, 60, 0.1);
  border-color: rgba(220, 20, 60, 0.3);
}

.rage-section .tracker-name {
  color: #dc143c;
}

/* History Section */
.history-section .history-content {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--tribe-accent, #9acd32);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.history-section .history-content p {
  margin: 0 0 15px 0;
}

.history-section .history-content p:last-child {
  margin-bottom: 0;
}

.history-section .empty-history {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* Editable Dots */
.editable-dots {
  display: flex;
  gap: 8px;
  cursor: pointer;
}

.editable-dots .dot {
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  user-select: none;
}

.editable-dots .dot:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

.editable-dots .dot.filled {
  text-shadow: 0 0 5px currentColor;
}

/* Gifts & Rites Section */
.gifts-rites-container,
.advantages-flaws-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gifts-rites-list,
.advantages-flaws-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gift-rite-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gift-rite-row.empty-row {
  justify-content: center;
  padding: 20px;
}

.empty-message {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  font-size: 14px;
}

.gift-rite-fields {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 10px;
  flex: 1;
}

.gift-rite-input,
.advantage-flaw-input {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(107, 142, 35, 0.3);
  border-radius: 4px;
  padding: 8px 12px;
  color: #ffffff;
  font-family: 'Special Elite', cursive;
  font-size: 14px;
}

.gift-rite-input:focus,
.advantage-flaw-input:focus {
  outline: none;
  border-color: #9acd32;
  box-shadow: 0 0 5px rgba(154, 205, 50, 0.3);
}

.gift-rite-input::placeholder,
.advantage-flaw-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Advantages & Flaws Section */
.advantage-flaw-row {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.advantage-flaw-row.empty-row {
  justify-content: center;
  padding: 20px;
}

.advantage-flaw-input {
  flex: 1;
}

.advantage-flaw-dots {
  flex-shrink: 0;
}

/* Remove Row Button */
.btn-remove-row {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 24px;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
  transition: color 0.3s ease;
}

.btn-remove-row:hover {
  color: #ff6347;
}

/* Add Row Button */
.btn-add-row {
  background-color: rgba(107, 142, 35, 0.3);
  border: 1px dashed rgba(107, 142, 35, 0.6);
  color: #9acd32;
  padding: 12px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Special Elite', cursive;
}

.btn-add-row:hover {
  background-color: rgba(107, 142, 35, 0.5);
  border-color: #9acd32;
}

/* Editable Textareas */
.editable-textarea-container {
  display: flex;
  flex-direction: column;
}

.editable-textarea {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(107, 142, 35, 0.3);
  border-radius: 8px;
  padding: 15px;
  color: #ffffff;
  font-family: 'Special Elite', cursive;
  font-size: 14px;
  line-height: 1.8;
  min-height: 100px;
  resize: vertical;
}

.editable-textarea:focus {
  outline: none;
  border-color: #9acd32;
  box-shadow: 0 0 10px rgba(154, 205, 50, 0.2);
}

.editable-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive styles for editable sections */
@media (max-width: 768px) {
  .renown-section .renown-grid {
    grid-template-columns: 1fr;
  }
  
  .harano-hauglosk-grid {
    grid-template-columns: 1fr;
  }
  
  .gift-rite-fields {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .gift-rite-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .advantage-flaw-row {
    flex-wrap: wrap;
  }
  
  .advantage-flaw-input {
    flex: 1 1 100%;
    margin-bottom: 10px;
  }
}

/* ===== DICE ROLLER STYLES ===== */

.dice-roller-section {
  position: relative;
}

.dice-roller-instructions {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
  font-style: italic;
}

.click-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: normal;
  font-style: italic;
}

/* Selectable rows */
.dice-selectable {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.dice-selectable:hover {
  background-color: rgba(154, 205, 50, 0.15);
  transform: translateX(3px);
}

.dice-selectable.dice-selected {
  background-color: rgba(154, 205, 50, 0.3);
  border-left: 3px solid #9acd32;
  padding-left: calc(6px - 3px);
}

.dice-selectable.dice-selected::before {
  content: '✓';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #9acd32;
  font-size: 14px;
  font-weight: bold;
}

/* Dice Pool Display */
.dice-pool-display {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.selected-pools {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.selected-pool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid rgba(107, 142, 35, 0.3);
  min-width: 150px;
}

.pool-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.pool-value {
  color: #9acd32;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 3px;
}

.pool-dice {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.total-pool {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(107, 142, 35, 0.2) 0%, rgba(85, 107, 47, 0.3) 100%);
  border-radius: 8px;
  border: 2px solid #9acd32;
}

.total-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: bold;
}

.total-value {
  color: #9acd32;
  font-size: 32px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(154, 205, 50, 0.5);
}

/* Dice Roller Actions */
.dice-roller-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.dice-roll-btn {
  font-size: 18px;
  padding: 15px 40px;
}

.dice-clear-btn {
  padding: 15px 25px;
}

/* Dice Results */
.dice-results {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(107, 142, 35, 0.5);
  border-radius: 8px;
  padding: 20px;
  margin-top: 15px;
}

.results-title {
  color: #9acd32;
  font-size: 18px;
  margin: 0 0 15px 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.dice-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.die-result {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid;
  transition: transform 0.3s ease;
  animation: diceRoll 0.5s ease-out;
}

.die-result.success {
  background-color: rgba(50, 205, 50, 0.2);
  border-color: #32cd32;
  color: #32cd32;
  box-shadow: 0 0 10px rgba(50, 205, 50, 0.3);
}

.die-result.failure {
  background-color: rgba(220, 20, 60, 0.2);
  border-color: #dc143c;
  color: #dc143c;
  box-shadow: 0 0 10px rgba(220, 20, 60, 0.2);
}

@keyframes diceRoll {
  0% {
    transform: scale(0) rotate(180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(-10deg);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

/* Results Summary */
.results-summary {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
}

.result-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.result-count.successes {
  background-color: rgba(50, 205, 50, 0.1);
  border: 2px solid rgba(50, 205, 50, 0.3);
}

.result-count.failures {
  background-color: rgba(220, 20, 60, 0.1);
  border: 2px solid rgba(220, 20, 60, 0.3);
}

.result-count .count-number {
  font-size: 36px;
  font-weight: bold;
  line-height: 1;
}

.result-count.successes .count-number {
  color: #32cd32;
}

.result-count.failures .count-number {
  color: #dc143c;
}

.result-count .count-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
}

/* Emphasized result (higher count) */
.result-count.emphasized {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(154, 205, 50, 0.3);
}

.result-count.emphasized.successes {
  background-color: rgba(50, 205, 50, 0.25);
  border-color: #32cd32;
  box-shadow: 0 0 25px rgba(50, 205, 50, 0.4);
}

.result-count.emphasized.failures {
  background-color: rgba(220, 20, 60, 0.25);
  border-color: #dc143c;
  box-shadow: 0 0 25px rgba(220, 20, 60, 0.4);
}

.result-count.emphasized .count-number {
  text-shadow: 0 0 15px currentColor;
}

/* Difficulty Reference */
.difficulty-reference {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

.difficulty-reference h5 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.difficulty-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.difficulty-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.diff-successes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: rgba(50, 205, 50, 0.2);
  border: 1px solid #32cd32;
  border-radius: 50%;
  color: #32cd32;
  font-weight: bold;
  font-size: 12px;
}

/* Responsive dice roller styles */
@media (max-width: 600px) {
  .selected-pools {
    flex-direction: column;
    align-items: center;
  }
  
  .selected-pool-item {
    width: 100%;
  }
  
  .results-summary {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .result-count {
    width: 100%;
    max-width: 200px;
  }
  
  .die-result {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .dice-roller-actions {
    flex-direction: column;
  }
  
  .dice-roll-btn,
  .dice-clear-btn {
    width: 100%;
  }
}
