/* ===============================
   WELCOME BACK / LIVE TOAST / CHARACTER UNLOCK TOAST
   =============================== */

.welcome-back-toast-host {
  position: fixed;
  top: 86px;
  right: 16px;
  z-index: 25000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.welcome-back-toast-box {
  position: relative;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(249, 115, 22, 0.30);
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.96), rgba(5, 9, 20, 0.98));
  box-shadow:
    0 0 24px rgba(249, 115, 22, 0.18),
    inset 0 0 12px rgba(255, 255, 255, 0.03);
  color: #e5e7eb;
  font-family: 'Orbitron', sans-serif;
  text-align: left;
  opacity: 0;
  transform: translateY(-18px) scale(0.95);
  transition:
    transform 0.35s cubic-bezier(.34,1.56,.64,1),
    opacity 0.25s ease;
  will-change: opacity, transform;
}

.welcome-back-toast-box.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.welcome-back-toast-box.is-hiding {
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
}

.welcome-back-toast-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffd54a;
  margin-bottom: 4px;
  line-height: 1.3;
}

.welcome-back-toast-sub {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
}

/* ===== CHARACTER UNLOCK TOAST ===== */

.character-unlock-toast-box {
  min-width: 240px;
  max-width: min(380px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(134, 239, 172, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 213, 74, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.97), rgba(5, 9, 20, 0.99));
  box-shadow:
    0 0 26px rgba(134, 239, 172, 0.14),
    0 0 42px rgba(255, 213, 74, 0.08),
    inset 0 0 14px rgba(255, 255, 255, 0.03);
}

.character-unlock-toast-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: linear-gradient(
    90deg,
    rgba(134, 239, 172, 0.95),
    rgba(255, 213, 74, 0.40),
    transparent
  );
  pointer-events: none;
}

.character-unlock-toast-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.character-unlock-toast-avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.10),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.03),
    0 0 14px rgba(255, 213, 74, 0.10);
}

.character-unlock-toast-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.character-unlock-toast-title {
  font-size: 13px;
  font-weight: 800;
  color: #86efac;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.character-unlock-toast-name {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
}

.character-unlock-toast-sub {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.character-unlock-toast-box.is-rare .character-unlock-toast-title {
  color: #ffd54a;
}

.character-unlock-toast-box.is-rare .character-unlock-toast-avatar {
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.03),
    0 0 16px rgba(255, 213, 74, 0.16);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 600px) {
  .welcome-back-toast-host {
    top: 84px;
    bottom: auto;
    left: 50%;
    right: auto;
    width: min(92vw, 360px);
    transform: translateX(-50%);
  }

  .welcome-back-toast-box,
  .character-unlock-toast-box {
    min-width: auto;
    max-width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    text-align: left;
  }

  .welcome-back-toast-box {
    transform: translateY(-20px) scale(0.94);
  }

  .welcome-back-toast-box.is-visible {
    transform: translateY(0) scale(1);
  }

  .welcome-back-toast-box.is-hiding {
    transform: translateY(-12px) scale(0.96);
  }

  .welcome-back-toast-title,
  .character-unlock-toast-title {
    font-size: 12px;
  }

  .welcome-back-toast-sub,
  .character-unlock-toast-sub {
    font-size: 10px;
  }

  .character-unlock-toast-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 20px;
  }

  .character-unlock-toast-name {
    font-size: 14px;
  }
}