/**
 * NOTIFICATIONS — toast в верхней части экрана.
 */

.notifications {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: min(92vw, 360px);
}

.notification {
  background: var(--bg-panel);
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px rgba(232, 184, 64, 0.4);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: notifIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--font-pixel);
  color: var(--text);
  pointer-events: auto;
}

.notification.clickable {
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.12s;
}

.notification.clickable:active {
  transform: scale(0.97);
  box-shadow: 0 0 28px rgba(232, 184, 64, 0.6);
}

.notification.out {
  animation: notifOut 0.22s ease-in forwards;
}

.notification-achievement {
  border-color: var(--accent);
}

.notification-info {
  border-color: var(--info);
}

.notification-success {
  border-color: var(--success);
}

@keyframes notifIn {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes notifOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-24px); }
}

.notif-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  border: 1px solid var(--outline);
}

.notif-icon svg {
  display: block;
  image-rendering: pixelated;
  shape-rendering: crispEdges;
}

.notif-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notif-title {
  font-size: 8px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.notif-text {
  font-size: 10px;
  color: var(--text);
  letter-spacing: 0.5px;
  line-height: 1.3;
  word-break: break-word;
}

.notif-subtext {
  font-size: 8px;
  color: var(--info);
  letter-spacing: 0.5px;
  margin-top: 1px;
}