/* Calculadora de dados RPG — página /calculadora-dados */

.aur-dice-code {
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-size: 0.86em;
  color: var(--gold-light);
  background: rgba(7, 12, 24, 0.7);
  border: 1px solid rgba(201, 150, 42, 0.22);
  border-radius: 3px;
  padding: 0.05rem 0.38rem;
}

.aur-dice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}

.aur-dice-input {
  flex: 1 1 12rem;
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.aur-dice-row .aur-btn {
  flex: 0 0 auto;
}

.aur-btn.is-copied {
  border-color: rgba(50, 145, 88, 0.55);
  color: #80c888;
}

.aur-dice-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.aur-dice-chip {
  appearance: none;
  border: 1px solid rgba(201, 150, 42, 0.28);
  background: rgba(13, 22, 40, 0.75);
  color: var(--txt-body);
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.aur-dice-chip:hover,
.aur-dice-chip.is-active {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 150, 42, 0.12);
}

.aur-dice-result {
  margin-top: 1.15rem;
}

.aur-dice-stat {
  padding: 0.95rem 1rem;
  border-radius: 4px;
  background:
    linear-gradient(165deg, rgba(20, 32, 58, 0.85) 0%, rgba(8, 14, 28, 0.92) 100%);
  border: 1px solid rgba(201, 150, 42, 0.22);
  box-shadow: inset 0 1px 0 rgba(240, 210, 114, 0.08);
  height: 100%;
  text-align: center;
}

.aur-dice-stat--mean {
  border-color: rgba(201, 150, 42, 0.45);
  background:
    linear-gradient(165deg, rgba(48, 36, 12, 0.55) 0%, rgba(12, 18, 32, 0.92) 100%);
}

.aur-dice-stat-label {
  font-family: var(--ff-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-muted);
  margin-bottom: 0.3rem;
}

.aur-dice-stat-value,
.aur-dice-roll-value {
  font-family: var(--ff-head);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--txt-parchment);
  word-break: break-all;
}

.aur-dice-stat--mean .aur-dice-stat-value {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-bright) 55%, var(--gold-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(201, 150, 42, 0.35));
}

.aur-dice-stat-meta {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--txt-muted);
}

.aur-dice-range {
  margin-top: 1rem;
}

.aur-dice-range-track {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(90, 140, 210, 0.35), rgba(201, 150, 42, 0.55), rgba(224, 96, 96, 0.4));
  border: 1px solid rgba(201, 150, 42, 0.25);
}

.aur-dice-range-mean,
.aur-dice-range-roll {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.aur-dice-range-mean {
  background: var(--gold-light);
  box-shadow: 0 0 8px rgba(240, 210, 114, 0.8);
}

.aur-dice-range-roll {
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: #f5e9c4;
  border: 2px solid #1a1408;
  box-shadow: 0 0 10px rgba(245, 233, 196, 0.7);
}

.aur-dice-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--txt-muted);
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
}

.aur-dice-formula {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--txt-body);
}

.aur-dice-rollbox {
  padding: 0.85rem 1rem;
  border-radius: 4px;
  border: 1px dashed rgba(201, 150, 42, 0.35);
  background: rgba(7, 12, 24, 0.45);
  text-align: center;
}

.aur-dice-roll-value {
  color: var(--gold-light);
  font-size: 1.7rem;
}

.aur-dice-help {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--txt-body);
}

.aur-dice-help li {
  margin-bottom: 0.4rem;
}

.aur-dice-rev-result {
  margin-top: 1rem;
}

#aur-dice-rev-hint:empty {
  display: none;
}

@media (max-width: 575.98px) {
  .aur-dice-row .aur-btn {
    flex: 1 1 calc(50% - 0.3rem);
    justify-content: center;
  }
}
