/* ===== Character Sheet System Accents ===== */
.sheet-dnd { --accent: #d4a94d; --accent-dim: #8a6522; --accent-glow: rgba(212,169,77,0.12); --accent-bright: #e5c06a; }
.sheet-pathfinder { --accent: #e07a5f; --accent-dim: #9c4832; --accent-glow: rgba(224,122,95,0.12); --accent-bright: #f4a582; }
.sheet-call_of_cthulhu { --accent: #5faa7e; --accent-dim: #2d6b47; --accent-glow: rgba(95,170,126,0.12); --accent-bright: #7dcea0; }
.sheet-dcc { --accent: #e89b3e; --accent-dim: #9a5e18; --accent-glow: rgba(232,155,62,0.12); --accent-bright: #f5b86a; }
.sheet-custom { --accent: #d4a94d; --accent-dim: #8a6522; --accent-glow: rgba(212,169,77,0.12); --accent-bright: #e5c06a; }

/* ===== Ability Score Badges ===== */
.ability-badge {
  flex: 1;
  text-align: center;
  border: 1.5px solid var(--accent);
  border-radius: 0.625rem;
  padding: 0.75rem 0.25rem 0.5rem;
  background: var(--accent-glow);
  min-width: 0;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ability-badge:hover {
  box-shadow: 0 0 12px var(--accent-glow);
}
.ability-mod {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-bright);
  line-height: 1.1;
  font-family: var(--font-display);
}
.ability-val {
  font-size: 0.6875rem;
  color: #918a80;
  margin-top: 0.125rem;
}
.ability-label {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #756e65;
  margin-top: 0.375rem;
  font-weight: 600;
}


/* ===== Stat Bars ===== */
.stat-bar {
  height: 1.625rem;
  border-radius: 0.5rem;
  background: #141311;
  border: 1px solid #272420;
  position: relative;
  overflow: hidden;
}
.stat-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: 0.5rem;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-bar-hp .stat-bar-fill { background: linear-gradient(90deg, #b83a3a, #f56565); }
.stat-bar-sanity .stat-bar-fill { background: linear-gradient(90deg, #2d6b47, #5faa7e); }
.stat-bar-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e8e0d4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  letter-spacing: 0.05em;
}

/* ===== Sheet Sections ===== */
.sheet-section {
  border: 1px solid #272420;
  border-radius: 0.625rem;
  padding: 0.875rem;
  margin-bottom: 0.75rem;
  background: rgba(20,19,17,0.6);
}
.sheet-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.625rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.sheet-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  margin: 0.75rem 0;
}

/* ===== CoC Specific ===== */
.sheet-call_of_cthulhu .sheet-section {
  border-color: #1a3328;
  background: rgba(13,26,20,0.4);
}
.coc-dossier-header {
  font-family: var(--font-mono);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  color: var(--accent);
}
.coc-field-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #756e65;
}
.coc-field-value {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-bright);
}
.coc-skill-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.1875rem 0;
}
.coc-skill-bar {
  flex: 1;
  height: 0.25rem;
  border-radius: 0.125rem;
  background: #141311;
  overflow: hidden;
}
.coc-skill-bar-fill {
  height: 100%;
  border-radius: 0.125rem;
  background: var(--accent);
  opacity: 0.5;
  transition: width 0.4s ease;
}

/* ===== DCC Specific ===== */
.sheet-dcc .sheet-section {
  border: 2px solid #3a2a10;
  border-radius: 0.25rem;
  background: rgba(35,25,10,0.4);
}
.dcc-stat-block {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  padding: 0.25rem 0;
  border-bottom: 1px dotted #3a2a10;
}
.dcc-stat-label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #756e65;
  min-width: 3rem;
}
.dcc-stat-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-bright);
}

/* ===== Pathfinder Specific ===== */
.pf-save-block {
  text-align: center;
  padding: 0.625rem;
  border: 1px solid var(--accent-dim);
  border-radius: 0.5rem;
  background: var(--accent-glow);
}
.pf-save-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-bright);
  font-family: var(--font-display);
}
.pf-save-label {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #756e65;
  margin-top: 0.125rem;
}

/* ===== Entry animation ===== */
@keyframes sheet-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.sheet-animate > * {
  animation: sheet-fade-in 0.35s ease-out both;
}
.sheet-animate > :nth-child(1) { animation-delay: 0ms; }
.sheet-animate > :nth-child(2) { animation-delay: 50ms; }
.sheet-animate > :nth-child(3) { animation-delay: 100ms; }
.sheet-animate > :nth-child(4) { animation-delay: 150ms; }
.sheet-animate > :nth-child(5) { animation-delay: 200ms; }
.sheet-animate > :nth-child(6) { animation-delay: 250ms; }
.sheet-animate > :nth-child(7) { animation-delay: 300ms; }
.sheet-animate > :nth-child(8) { animation-delay: 350ms; }
