/* Выбор одного Дара из поля друга-интегратора: плашка над сеткой Сокровищницы
   и окошко выбора. Логика — js/field-pick.js. Значения — по канону moy-stil. */

.field-pick-banner {
  display: flex; flex-direction: column; gap: 4px; width: 100%;
  margin: 0 0 16px; padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.3); border-radius: 14px;
  box-shadow: 0 8px 25px rgba(212,175,55,0.15);
  text-align: center; cursor: pointer; font-family: inherit;
  transition: background-color .2s, border-color .2s;
}
@media (hover: hover) { .field-pick-banner:hover { background: rgba(255,255,255,0.08); } }
.field-pick-banner:active { background: rgba(255,255,255,0.08); }
.field-pick-banner-title { font-size: 14px; font-weight: 600; color: #D4AF37; }
.field-pick-banner-sub { font-size: 12px; color: #a09080; }

.field-pick-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(10,10,10,0.7);
}
.field-pick-dialog {
  display: flex; flex-direction: column;
  width: 100%; max-width: 420px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow: hidden; padding: 24px 16px;
  background: #080808;
  border: 1px solid rgba(212,175,55,0.3); border-radius: 20px;
  box-shadow: 0 8px 32px rgba(212,175,55,0.4);
}
.field-pick-body { overflow-y: auto; min-height: 0; }
.field-pick-footer { flex: none; padding-top: 12px; }

.field-pick-title {
  margin: 0 0 12px; font-size: 20px; font-weight: 700; color: #f1f5f9; text-align: center; outline: none;
}
.field-pick-text { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: #f1f5f9; }

.field-pick-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.field-pick-dar {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 48px; padding: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.15); border-radius: 14px;
  color: #f1f5f9; font-family: inherit; font-size: 14px; font-weight: 600;
  text-align: center; overflow-wrap: anywhere; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.field-pick-dar small { font-size: 12px; font-weight: 400; color: #a09080; }
@media (hover: hover) { .field-pick-dar:hover { background: rgba(255,255,255,0.08); } }
.field-pick-dar-selected {
  border-color: #D4AF37; background: rgba(212,175,55,0.2); color: #D4AF37;
}
.field-pick-dar-selected span::before { content: "\2713\00a0"; }
.field-pick-dar-open { cursor: default; color: #a09080; background: transparent; }

.field-pick-once { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #f1f5f9; text-align: center; }

.btn.field-pick-confirm {
  margin: 0; min-height: 48px; padding: 12px 16px;
  font-size: 16px; letter-spacing: 0; border-radius: 14px;
  transition: box-shadow .2s, opacity .2s;
}
.btn.field-pick-confirm:hover:not(:disabled) { transform: none; }
.btn.field-pick-confirm:disabled {
  background: rgba(255,255,255,0.04); color: #a09080;
  border: 1px solid rgba(212,175,55,0.15); box-shadow: none; filter: none; cursor: default;
}
.field-pick-later {
  display: block; width: 100%; min-height: 44px; margin-top: 8px; padding: 12px;
  background: none; border: none; font-family: inherit; font-size: 14px; color: #a09080;
  cursor: pointer;
}

.field-pick-banner:focus-visible, .field-pick-dar:focus-visible,
.field-pick-confirm:focus-visible, .field-pick-later:focus-visible {
  outline: 2px solid #D4AF37; outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .field-pick-banner, .field-pick-dar, .btn.field-pick-confirm { transition: none; }
}
