/**
 * Oath Hammer Dice Engine Styles (dice_engine.css)
 * Standard styling for .hammerdice-result and .die components
 * https://hypertekst.net/dice_api/
 */

.hammerdice-result {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--oh-bg-panel, #18181c);
  color: var(--oh-ink-primary, #f4f4f5);
  border: 1px solid var(--oh-border-muted, #52525b);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  max-width: 440px;
  box-sizing: border-box;
}

.hammerdice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--oh-border-soft, #3f3f46);
  padding-bottom: 6px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.hammerdice-character {
  font-weight: 700;
  color: var(--oh-ink-heading, #fafafa);
}

.hammerdice-label {
  color: var(--oh-ink-secondary, #d4d4d8);
  font-style: italic;
}

.hammerdice-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--oh-bg-surface, #141417);
  border: 1px solid var(--oh-border-soft, #3f3f46);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 10px;
}

.hammerdice-summary-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--oh-ink-secondary, #d4d4d8);
  font-weight: 600;
}

.hammerdice-summary-val {
  font-size: 1.8rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--oh-ink-heading, #fafafa);
  line-height: 1;
}

.hammerdice-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hammerdice-wave {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hammerdice-wave-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--oh-ink-secondary, #a1a1aa);
}

.hammerdice-dice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.die {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  border-radius: 6px;
  position: relative;
  user-select: none;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.die.black {
  background: #222222;
  color: #ffffff;
  border: 1.5px solid #52525b;
}

.die.red {
  background: #c62828;
  color: #ffffff;
  border: 1.5px solid #8e0000;
}

.die.white {
  background: #ffffff;
  color: #111827;
  border: 1.5px solid #64748b;
}

.die.fail {
  opacity: 0.35;
}

.die.exploded {
  box-shadow: 0 0 8px rgba(217, 119, 6, 0.55);
}

.hammerdice-result .oh-svg-ico {
  display: inline-block;
  vertical-align: -2px;
  flex-shrink: 0;
}

.die-boom {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #f59e0b;
  color: #111827;
  line-height: 1;
}

.die-boom .oh-svg-ico {
  width: 10px;
  height: 10px;
  margin: 0;
}

.hammerdice-empty {
  text-align: center;
  color: var(--oh-ink-secondary, #a1a1aa);
  font-style: italic;
  padding: 16px;
}
