/* UFCR auth modal — drop-in styling.
   Scoped under #ufcr-modal so it never leaks into game styles. */
#ufcr-modal {
  position: fixed; inset: 0; z-index: 99999;
  display: none; align-items: center; justify-content: center;
  font-family: 'Inter', -apple-system, sans-serif;
  color: #fff;
}
#ufcr-modal.open { display: flex; }
#ufcr-modal .ufcr-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 12, 36, 0.78);
  backdrop-filter: blur(12px);
  animation: ufcrFadeIn 0.25s ease-out;
}
#ufcr-modal .ufcr-card {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: linear-gradient(180deg, #001845, #0A0E1A);
  border: 1px solid rgba(240, 168, 48, 0.25);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: ufcrPop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes ufcrFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ufcrPop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
#ufcr-modal .ufcr-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: 0;
  color: rgba(255,255,255,0.5); font-size: 1.4rem;
  cursor: pointer; padding: 6px; line-height: 1;
  transition: color 0.2s;
}
#ufcr-modal .ufcr-close:hover { color: #fff; }
#ufcr-modal h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 6px;
}
#ufcr-modal .ufcr-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 22px;
}
#ufcr-modal label {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 14px 0 6px;
}
#ufcr-modal input[type="email"],
#ufcr-modal input[type="password"],
#ufcr-modal input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
#ufcr-modal input:focus {
  outline: none;
  border-color: #FA4616;
  background: rgba(255,255,255,0.08);
}
#ufcr-modal .ufcr-row { display: flex; gap: 10px; }
#ufcr-modal .ufcr-row > * { flex: 1; }
#ufcr-modal button.ufcr-primary {
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  background: linear-gradient(180deg, #FA4616, #C5350F);
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
#ufcr-modal button.ufcr-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(250, 70, 22, 0.4);
}
#ufcr-modal button.ufcr-primary:disabled { opacity: 0.55; cursor: wait; }
#ufcr-modal .ufcr-tabs {
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.04);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 22px;
}
#ufcr-modal .ufcr-tab {
  flex: 1;
  background: transparent; border: 0;
  padding: 10px;
  color: rgba(255,255,255,0.55);
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; border-radius: 7px;
  transition: all 0.2s;
}
#ufcr-modal .ufcr-tab.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
#ufcr-modal .ufcr-terms {
  display: flex; gap: 10px;
  margin-top: 16px;
  padding: 14px;
  background: rgba(0, 33, 165, 0.18);
  border: 1px solid rgba(240, 168, 48, 0.18);
  border-radius: 8px;
  font-size: 0.78rem; line-height: 1.55;
  color: rgba(255,255,255,0.75);
}
#ufcr-modal .ufcr-terms input { margin-top: 2px; accent-color: #FA4616; }
#ufcr-modal .ufcr-terms a { color: #F0A830; text-decoration: underline; }
#ufcr-modal .ufcr-link {
  background: transparent; border: 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer; padding: 4px 0;
}
#ufcr-modal .ufcr-link:hover { color: #fff; }
#ufcr-modal .ufcr-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px;
}
#ufcr-modal .ufcr-err {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 6px;
  font-size: 0.82rem;
  color: #fecaca;
}
#ufcr-modal .ufcr-ok {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 6px;
  font-size: 0.82rem;
  color: #bbf7d0;
}
#ufcr-modal .ufcr-profile-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
#ufcr-modal .ufcr-profile-row:last-child { border-bottom: 0; }
#ufcr-modal .ufcr-label-small {
  font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}
#ufcr-modal .ufcr-value { font-size: 0.95rem; }
#ufcr-modal .ufcr-secondary {
  width: 100%; margin-top: 10px;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
#ufcr-modal .ufcr-secondary:hover { background: rgba(255,255,255,0.06); }
