/* ============ ФАРМ — РЕЗУЛЬТАТЫ ============ */
/* Карточки результатов — общие стили в shared.css (.result-card*) */

/* ============ НАСТРАДАНИЕ ============ */
.anguish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 500px) {
  .anguish-grid {
    grid-template-columns: 1fr;
  }
}

.anguish-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-slot);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 0;
  overflow: hidden;
}

.anguish-info {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.anguish-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.anguish-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.anguish-input {
  width: 100%;
  max-width: 70px;
  min-width: 50px;
  padding: 6px 8px;
  font-size: 14px;
  font-family: 'Cormorant', serif;
  font-weight: 700;
  text-align: center;
  color: var(--gold);
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 4px;
  -moz-appearance: textfield;
  flex-shrink: 0;
  box-sizing: border-box;
}

.anguish-input::-webkit-outer-spin-button,
.anguish-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.anguish-input:focus {
  border-color: var(--gold-dim);
  outline: none;
}

/* ============ ИВЕНТЫ ============ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 6px;
}

.event-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  background: var(--bg-slot);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  text-align: center;
  transition: all 0.15s ease;
  min-width: 0;
  overflow: hidden;
}

.event-item:hover {
  border-color: var(--gold-dim);
  background: #242424;
}

.event-item input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.event-item input:checked {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.event-item input:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #0a0a0a;
  font-weight: 700;
}

.event-item span {
  font-size: 10px;
  color: var(--text);
  line-height: 1.1;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.event-effect {
  font-size: 9px;
  color: var(--gold);
  line-height: 1.1;
  margin-top: 2px;
  overflow-wrap: break-word;
  max-width: 100%;
}

.event-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.slot.is-locked {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}

.slot.is-locked::after {
  content: '🔒';
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 10px;
  opacity: 0.8;
}

/* ============ ЗАВИСИМОСТЬ ОТ СПЕЦИАЛИЗАЦИИ ============ */
.slot.requires-spec {
  outline: 2px solid #c44;
  outline-offset: -2px;
}

.slot.requires-spec::before {
  content: '⚠';
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 12px;
  color: #e55;
  z-index: 3;
  pointer-events: none;
  text-shadow: 0 0 4px #000;
}

.slot.requires-spec.spec-satisfied {
  outline: 2px solid #4a4;
}

.slot.requires-spec.spec-satisfied::before {
  content: '✓';
  color: #6c6;
}

.class-select.spec-required,
.class-row.spec-required {
  outline: 2px solid #c44;
  outline-offset: 2px;
}

.class-select.spec-required.spec-satisfied,
.class-row.spec-required.spec-satisfied {
  outline-color: #4a4;
}

.slot-stats.stats-requires-spec {
  color: #c44;
  font-weight: 600;
}

/* ============ КАП УДАЧИ ============ */
/* Метка «КАП / MAX» и подсветка — общие стили в shared.css (.result-card*) */

/* Взаимоисключающие ивенты (Орнопад / Исследование пещер) */
.consumable-item.is-mutex-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.consumable-item.is-mutex-disabled input {
  cursor: not-allowed;
}

/* ============ БЕЙДЖ ШТРАФА ДВУРУЧЕК ============ */
.slot-penalty-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  padding: 2px 5px;
  font-size: 9px;
  font-weight: 700;
  color: #ff8a7a;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #d46a5a;
  border-radius: 3px;
  z-index: 3;
  pointer-events: none;
  text-shadow: 0 0 3px #000;
  font-family: 'Inter', sans-serif;
  line-height: 1.2;
}

/* Формула под строкой */

.calc-popup-step-anguish {
  background: rgba(255, 200, 0, 0.08);
  border-left: 2px solid rgba(255, 200, 0, 0.5);
}

/* Числа в поп-апе — Cinzel Decorative Regular */

/* ============ ПОДПИСЬ У ПИТОМЦА ============ */
.pet-note {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
  text-align: center;
  line-height: 1.2;
}

/* Увеличиваем размер шрифта именно для пунктов в списке */
