/* Угадывание авторов: источник переноса, место назначения и выбранный друг. */
.guess-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  counter-reset: guess-step;
}
.guess-steps li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  flex: 1 1 180px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  counter-increment: guess-step;
}
.guess-steps li::before {
  content: counter(guess-step);
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  height: 25px;
  border-radius: 8px;
  background: var(--lilac);
  color: var(--purple-dark);
  font-weight: 900;
}
.player-drag-guide {
  padding: 12px;
  margin: 14px 0 0;
  border-radius: 12px;
  background: var(--paper);
  color: var(--purple-dark);
  font-size: 13px;
  line-height: 1.5;
}
.drop-avatar { position: relative; border: 2px dashed var(--purple); }
.avatar-drag-mark {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--purple);
  border-radius: 7px;
  background: var(--paper);
  color: var(--purple-dark);
  font: 800 15px/1 var(--font-ui);
}
.players .player-drag-hint { color: var(--purple-dark); font-weight: 700; margin-top: 7px; }
.drag-author { cursor: grab; -webkit-user-select: none; user-select: none; }
.author-drag-source { cursor: grabbing; }
.author-drag-source .player-info { opacity: .55; }
.players .drag-author button:not(:disabled), .players .drag-author button:not(:disabled) * {
  cursor: url("/assets/cursor-pointer.svg") 12 4, pointer;
}
.guess-author-picker { position: relative; width: 100%; }
.guess-author-picker::after {
  content: "";
  position: absolute;
  right: 17px;
  top: calc(50% - 6px);
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--purple-dark);
  border-bottom: 2px solid var(--purple-dark);
  transform: rotate(45deg);
  pointer-events: none;
}
.guess-author-picker.is-readonly::after { display: none; }
.guess-author-slot {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 100px;
  padding: 14px;
  padding-right: 38px;
  border: 2px dashed #9876c9;
  border-radius: 14px;
  background: #fffaf0b3;
  color: var(--purple-dark);
  width: 100%;
  text-align: left;
}
/* Без собственного меню нативный select остаётся единственным контролом и
   занимает всю область с аватаром/подсказкой. Он доступен клавиатуре и касанию. */
.guess-author-select:not(.game-select-source) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
}
.guess-author-picker .game-select-rich-trigger {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  outline: none;
}
.guess-author-picker .game-select-rich-trigger::after { display: none; }
.guess-author-picker .game-select-rich-trigger:hover:not(:disabled),
.guess-author-picker .game-select-rich-trigger:active:not(:disabled) { background: transparent; box-shadow: none; transform: none; }
.guess-author-picker:focus-within .guess-author-slot { outline: 3px solid var(--purple); outline-offset: 3px; }
.guess-author-picker:not(.is-readonly):hover .guess-author-slot { background: var(--lilac); }
.guess-author-picker .game-select-rich-trigger:disabled { opacity: 1; }
.guess-author-avatar { transform: none; background: var(--lilac); }
.guess-author-copy { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.guess-author-copy strong { font-size: 15px; line-height: 1.4; }
.guess-author-copy small { font-size: 12px; line-height: 1.4; }
.guess-author-slot.has-author { border-style: solid; border-color: var(--purple); background: var(--paper); }
.guess-author-name { color: var(--ink); }
.guess-drop-hover { display: none; }
.guess-drop-target .guess-author-slot { border-color: var(--purple); background: #eee5ff; }
.fact.dragover {
  outline: none;
  border-color: var(--purple);
  box-shadow: inset 0 0 0 2px var(--purple), 0 4px 0 #2b1b4b20;
}
.fact.dragover .guess-author-slot { border-style: solid; background: var(--mint); }
.fact.dragover .guess-author-copy { display: none; }
.fact.dragover .guess-drop-hover { display: block; font-size: 15px; line-height: 1.4; }
.guess-own-note { line-height: 1.5; }
@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .guess-drag-step, .player-drag-guide, .player-drag-hint, .avatar-drag-mark, .guess-drag-copy { display: none !important; }
  .guess-steps li::before { display: none; }
  .drop-avatar { border: var(--line); }
}
