/* Окно игрока: слоты сохранений, ачивки, уведомления о достижениях */
#prof-win { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; }
#prof-win.hidden { display: none; }
.prof-box {
  width: min(600px, 94vw); max-height: 88vh; overflow-y: auto; padding: 14px 18px;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), var(--wood-tex), #2a1e14;
  border: 2px solid #0a0705; box-shadow: inset 0 0 0 1px var(--line-hi), 0 10px 40px #000; color: var(--text);
}
.prof-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prof-head h3 { margin: 0; color: var(--gold-hi); }
.prof-tabs { display: flex; gap: 4px; margin: 10px 0 6px; }
.prof-tabs button { flex: 1; }
.prof-tabs button.active, .prof-players button.active { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-hi); }
.prof-msg { margin: 6px 0; padding: 4px 8px; background: rgba(0,0,0,0.35); color: var(--gold-hi); font-size: 13px; }
.prof-sec { margin: 12px 0 4px; color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.prof-slot { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-bottom: 4px; background: rgba(0,0,0,0.3); border: 1px solid var(--line); }
.prof-slot.empty .ps-t small { opacity: 0.6; }
.ps-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ps-t small { color: var(--text-dim); }
.ps-b { display: flex; gap: 4px; flex: none; }
.prof-row { display: flex; gap: 6px; margin: 4px 0; }
.prof-row input { flex: 1; min-width: 0; padding: 5px 8px; background: #1a130d; color: var(--text); border: 1px solid var(--line-hi); font: inherit; }
.prof-players { display: flex; flex-wrap: wrap; gap: 4px; }
.prof-players small { margin-left: 6px; color: var(--text-dim); }
.prof-note { color: var(--text-dim); font-size: 12px; line-height: 1.4; }
.danger { color: var(--red); }
.ach-list { display: grid; gap: 4px; margin-top: 6px; }
.ach-row { display: flex; gap: 10px; padding: 6px 8px; background: rgba(0,0,0,0.3); border: 1px solid var(--line); opacity: 0.6; }
.ach-row.got { opacity: 1; border-color: var(--gold); }
.ach-row b, .ach-toast b { display: block; color: var(--text); }
.ach-row.got b { color: var(--gold-hi); }
.ach-row span, .ach-toast span { display: block; font-size: 12.5px; line-height: 1.35; color: var(--text-dim); }
.ach-row small { color: var(--text-dim); font-size: 11px; }
.ach-cup { flex: none; width: 28px; font-size: 24px; line-height: 28px; text-align: center; color: var(--gold); }
#ach-toasts { position: fixed; right: 14px; bottom: 14px; z-index: 19; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; pointer-events: none; }
.ach-toast {
  display: flex; gap: 10px; max-width: min(340px, 90vw); padding: 8px 12px; pointer-events: auto; cursor: pointer;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), var(--wood-tex), #2a1e14;
  border: 2px solid #0a0705; box-shadow: inset 0 0 0 1px var(--gold), 0 4px 14px rgba(0,0,0,0.7);
  animation: achIn 6.5s forwards;
}
.ach-toast small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.ach-toast b { color: var(--gold-hi); }
@keyframes achIn { 0% { opacity: 0; transform: translateX(30px); } 6%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
body.mobile #ach-toasts { right: 8px; left: 8px; bottom: auto; top: 84px; align-items: center; }
