.er-moment {
  background: #fffdf8;
  border: 2px solid rgba(44, 44, 44, 0.24);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.9rem;
}

.er-cat-pill {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: rgba(192, 57, 43, 0.14);
  color: #8f2419;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.er-moment h2 {
  font-family: 'Caveat', cursive;
  font-size: 1.95rem;
  line-height: 1.12;
  margin-bottom: 0.35rem;
}

.er-moment p {
  font-size: 1.08rem;
  color: var(--ink);
}

.er-controls {
  background: #faf6ee;
  border: 2px solid rgba(44, 44, 44, 0.28);
  border-radius: 8px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.85rem;
}

.er-readout-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.er-year-big {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

.er-year-field {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.er-year-field input {
  width: 92px;
  min-height: 40px;
  padding: 0.25rem 0.55rem;
  border: 2px solid rgba(44, 44, 44, 0.35);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.er-track-wrap {
  position: relative;
  height: 58px;
  margin: 0.7rem 0.4rem 0.35rem;
}

.er-track-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 26px;
  height: 6px;
  border-radius: 999px;
  background: rgba(44, 44, 44, 0.2);
}

.er-gap-bar {
  position: absolute;
  top: 25px;
  height: 8px;
  border-radius: 999px;
  background: rgba(192, 57, 43, 0.42);
}

.er-pin {
  position: absolute;
  top: 19px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.er-pin::after {
  content: attr(data-label);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  white-space: nowrap;
}

.er-pin--guess { background: var(--red); }
.er-pin--guess::after { background: var(--red); color: #fff; }
.er-pin--truth { background: var(--green); }
.er-pin--truth::after { top: 20px; bottom: auto; background: var(--green); color: #fff; }

.er-slider {
  width: 100%;
  height: 32px;
  accent-color: var(--red);
  cursor: pointer;
}

.er-scale {
  position: relative;
  height: 1.35rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.er-scale span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}
.er-scale span:first-child { transform: none; }

.er-eras {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.er-era-btn {
  min-height: 36px;
  padding: 0.2rem 0.65rem;
  border: 1.5px solid rgba(44, 44, 44, 0.28);
  border-radius: 999px;
  background: #fffcf6;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.er-era-btn:hover { border-color: var(--ink); background: rgba(39, 174, 96, 0.12); }
