/* MemoFish — centered message modal (shared across all pages) */

.tff-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding:
    calc(16px + env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    calc(16px + env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.tff-modal[hidden] {
  display: none !important;
}

.tff-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 48, 86, 0.58);
  backdrop-filter: blur(4px);
}

.tff-modal__box {
  position: relative;
  width: min(300px, 100%);
  padding: 22px 20px 18px;
  border-radius: 20px;
  background: #fffef8;
  text-align: center;
  border: 1.5px solid rgba(13, 106, 168, 0.14);
  box-shadow:
    0 20px 44px rgba(7, 48, 86, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tff-modal__box--info {
  border-top: 4px solid #1cb5c8;
}

.tff-modal__box--success {
  border-top: 4px solid #2eb85c;
}

.tff-modal__box--error {
  border-top: 4px solid #ff6b3d;
}

.tff-modal__text {
  margin: 0;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #14324a;
  line-height: 1.5;
}

.tff-modal__actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.tff-modal__btn {
  min-width: 120px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.tff-modal__btn:active {
  transform: scale(0.97);
}

.tff-modal__btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #1cb5c8 0%, #0d6aa8 100%);
  box-shadow: 0 5px 0 #084d7a, 0 10px 20px rgba(13, 106, 168, 0.28);
}
