/* NDEsGame global form feedback toast. Visual-only; does not change server validation. */
.ndes-toast-region{
  position:fixed;
  top:max(14px,env(safe-area-inset-top));
  inset-inline:12px;
  z-index:2147483000;
  width:min(520px,calc(100vw - 24px));
  margin-inline:auto;
  display:grid;
  gap:10px;
  pointer-events:none;
}
.ndes-toast{
  pointer-events:auto;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:start;
  gap:10px;
  padding:12px 13px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background:rgba(16,20,29,.96);
  color:#f8fafc;
  box-shadow:0 18px 55px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.05);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  direction:rtl;
  text-align:right;
  animation:ndesToastIn .2s ease-out both;
}
.ndes-toast--error{border-color:rgba(251,113,133,.46);background:linear-gradient(135deg,rgba(67,18,29,.97),rgba(17,20,28,.97))}
.ndes-toast--warning{border-color:rgba(251,191,36,.42);background:linear-gradient(135deg,rgba(67,42,13,.97),rgba(17,20,28,.97))}
.ndes-toast--success{border-color:rgba(52,211,153,.38);background:linear-gradient(135deg,rgba(13,59,46,.97),rgba(17,20,28,.97))}
.ndes-toast__icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.08);font-size:18px;line-height:1}
.ndes-toast--error .ndes-toast__icon{color:#fda4af;background:rgba(244,63,94,.13)}
.ndes-toast--warning .ndes-toast__icon{color:#fcd34d;background:rgba(245,158,11,.13)}
.ndes-toast--success .ndes-toast__icon{color:#6ee7b7;background:rgba(16,185,129,.13)}
.ndes-toast__body{min-width:0}
.ndes-toast__title{display:block;margin:0 0 2px;font-size:13px;font-weight:900;line-height:1.7}
.ndes-toast__message{display:block;margin:0;color:rgba(248,250,252,.86);font-size:12px;font-weight:650;line-height:1.8;overflow-wrap:anywhere}
.ndes-toast__close{width:30px;height:30px;display:grid;place-items:center;padding:0;border:0;border-radius:9px;background:transparent;color:rgba(255,255,255,.68);font:inherit;font-size:20px;cursor:pointer}
.ndes-toast__close:hover,.ndes-toast__close:focus-visible{outline:0;background:rgba(255,255,255,.08);color:#fff}
.ndes-toast.is-leaving{animation:ndesToastOut .18s ease-in both}
@keyframes ndesToastIn{from{opacity:0;transform:translateY(-10px) scale(.985)}to{opacity:1;transform:none}}
@keyframes ndesToastOut{to{opacity:0;transform:translateY(-8px) scale(.985)}}
@media(max-width:640px){
  .ndes-toast-region{top:max(8px,env(safe-area-inset-top));inset-inline:8px;width:calc(100vw - 16px)}
  .ndes-toast{padding:11px;border-radius:14px;gap:8px}
  .ndes-toast__icon{width:30px;height:30px}
  .ndes-toast__title{font-size:12.5px}.ndes-toast__message{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.ndes-toast,.ndes-toast.is-leaving{animation:none}}
