/* v5.22 — Friend codes (Phase B Lite) */
.vfl-friends-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9000;
  background: rgba(20,30,55,0.85);
  color: #ffd84d;
  border: 1px solid rgba(255,216,77,0.45);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.15s ease, background 0.15s ease;
}
.vfl-friends-btn:hover { transform: translateY(-1px); background: rgba(40,55,90,0.95); }
body.match-active .vfl-friends-btn { display: none; }

.vfl-friends-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 20px;
}
.vfl-friends-modal.show { opacity: 1; }
.vfl-friends-card {
  background: linear-gradient(180deg, #14213d 0%, #0a1428 100%);
  border: 1px solid rgba(255,216,77,0.3);
  border-radius: 14px;
  padding: 24px 22px 20px;
  max-width: 440px;
  width: 100%;
  color: #e6ecf5;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  max-height: 90vh;
  overflow-y: auto;
}
.vfl-friends-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: #ffd84d;
}
.vfl-friends-sub {
  margin: 0 0 16px;
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.4;
}
.vfl-friends-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #ffd84d;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.vfl-friends-section {
  margin-bottom: 18px;
}
.vfl-friends-section label {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #ffd84d;
  margin-bottom: 8px;
  opacity: 0.85;
}
.vfl-friends-link {
  display: flex;
  gap: 8px;
}
.vfl-friends-link input {
  flex: 1;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #cfd6e4;
  padding: 10px 12px;
  font-family: monospace;
  font-size: 12px;
  outline: none;
}
.vfl-friends-copy {
  background: #ffd84d;
  color: #0a1428;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.08em;
  font-size: 14px;
  cursor: pointer;
  font-weight: 700;
}
.vfl-friends-copy:hover { filter: brightness(1.08); }
.vfl-friends-list {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  max-height: 220px;
  overflow-y: auto;
}
.vfl-friends-empty {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  opacity: 0.55;
}
.vfl-friends-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.vfl-friends-row:last-child { border-bottom: none; }
.vfl-friends-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 0.05em;
}
.vfl-friends-meta {
  font-size: 12px;
  opacity: 0.6;
  font-family: monospace;
}

.vfl-friends-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-60px);
  background: linear-gradient(135deg, #ffd84d, #ffb347);
  color: #0a1428;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 11000;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.vfl-friends-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 480px) {
  .vfl-friends-btn {
    top: 8px;
    right: 8px;
    font-size: 12px;
    padding: 6px 10px;
  }
}
