/* /var/www/batallaroyale.eu.cc/public_html/assets/lobby_overlay.css */
/* Exact Hypersomnia In-Game Cyberpunk Menu Aesthetic */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,400;0,600;0,700;1,700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --hs-magenta: #e024c3;
  --hs-magenta-glow: rgba(224, 36, 195, 0.6);
  --hs-magenta-bg: rgba(28, 12, 34, 0.88);
  
  --hs-green: #00e676;
  --hs-green-glow: rgba(0, 230, 118, 0.6);
  --hs-green-bg: rgba(10, 28, 20, 0.88);
  
  --hs-cyan: #00b4d8;
  --hs-cyan-glow: rgba(0, 180, 216, 0.6);
  --hs-cyan-bg: rgba(8, 22, 32, 0.88);

  --hs-gold: #ffcc00;
  --hs-gold-glow: rgba(255, 204, 0, 0.6);
  
  --hs-dark-bg: rgba(13, 17, 24, 0.94);
  --hs-panel-border: rgba(70, 85, 105, 0.55);
  --hs-card-bg: rgba(18, 24, 34, 0.9);
  
  --hs-font: 'Chakra Petch', 'Rajdhani', -apple-system, sans-serif;
}

/* TOP HUD BAR - Sleek in-game style */
#br-hud {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 54px;
  background: rgba(11, 15, 22, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1.5px solid rgba(0, 180, 216, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 99999;
  font-family: var(--hs-font);
  color: #fff;
  user-select: none;
}

.br-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  letter-spacing: 0.5px;
}

.br-brand span {
  font-family: var(--hs-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--hs-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--hs-green);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.br-hud-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Authentic Hypersomnia Menu Button Styles */
.hs-btn {
  font-family: var(--hs-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease-in-out;
  text-transform: capitalize;
  outline: none;
  clip-path: polygon(
    6px 0%, calc(100% - 6px) 0%,
    100% 6px, 100% calc(100% - 6px),
    calc(100% - 6px) 100%, 6px 100%,
    0% calc(100% - 6px), 0% 6px
  );
}

.hs-btn-magenta {
  background: var(--hs-magenta-bg);
  border: 1.5px solid var(--hs-magenta);
  color: #ffffff;
  box-shadow: 0 0 8px var(--hs-magenta-glow);
}

.hs-btn-magenta:hover {
  background: rgba(224, 36, 195, 0.35);
  box-shadow: 0 0 16px var(--hs-magenta);
  transform: translateY(-1px);
}

.hs-btn-green {
  background: var(--hs-green-bg);
  border: 1.5px solid var(--hs-green);
  color: #ffffff;
  box-shadow: 0 0 8px var(--hs-green-glow);
}

.hs-btn-green:hover {
  background: rgba(0, 230, 118, 0.35);
  box-shadow: 0 0 16px var(--hs-green);
  transform: translateY(-1px);
}

.hs-btn-cyan {
  background: var(--hs-cyan-bg);
  border: 1.5px solid var(--hs-cyan);
  color: #ffffff;
  box-shadow: 0 0 8px var(--hs-cyan-glow);
}

.hs-btn-cyan:hover {
  background: rgba(0, 180, 216, 0.35);
  box-shadow: 0 0 16px var(--hs-cyan);
  transform: translateY(-1px);
}

.br-hud-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.br-credits-badge {
  background: rgba(25, 20, 10, 0.9);
  border: 1px solid var(--hs-gold);
  color: #fff;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 8px var(--hs-gold-glow);
  clip-path: polygon(5px 0%, 100% 0%, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0% 100%, 0% 5px);
}

.br-credits-badge strong {
  color: var(--hs-gold);
  font-size: 15px;
}

.br-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(15, 20, 30, 0.85);
  padding: 4px 12px;
  border: 1px solid var(--hs-green);
  color: #fff;
  box-shadow: 0 0 8px var(--hs-green-glow);
  clip-path: polygon(5px 0%, 100% 0%, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0% 100%, 0% 5px);
}

/* FLOATING IN-GAME LAUNCH BANNER */
#br-active-game-banner {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 18, 26, 0.96);
  border: 2px solid var(--hs-magenta);
  box-shadow: 0 0 25px var(--hs-magenta-glow);
  padding: 10px 24px;
  display: none;
  align-items: center;
  gap: 16px;
  z-index: 99998;
  font-family: var(--hs-font);
  color: #fff;
  clip-path: polygon(10px 0%, calc(100% - 10px) 0%, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0% calc(100% - 10px), 0% 10px);
  animation: pulse 1s infinite alternate;
}

/* MODALS - Matching Hypersomnia Menu Box */
.br-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-family: var(--hs-font);
}

.br-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.br-modal {
  background: var(--hs-dark-bg);
  border: 1.5px solid var(--hs-panel-border);
  width: 90%;
  max-width: 680px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 180, 216, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
  clip-path: polygon(
    10px 0%, calc(100% - 10px) 0%,
    100% 10px, 100% calc(100% - 10px),
    calc(100% - 10px) 100%, 10px 100%,
    0% calc(100% - 10px), 0% 10px
  );
}

.br-modal-header {
  padding: 14px 20px;
  background: rgba(10, 14, 20, 0.95);
  border-bottom: 1.5px solid var(--hs-panel-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.br-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--hs-green);
  text-shadow: 0 0 8px var(--hs-green-glow);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.br-close-btn {
  background: transparent;
  border: 1px solid rgba(120, 140, 160, 0.4);
  color: #aaa;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 8px;
  transition: all 0.2s;
  font-family: var(--hs-font);
}

.br-close-btn:hover {
  color: #fff;
  border-color: var(--hs-magenta);
  background: rgba(224, 36, 195, 0.2);
}

.br-modal-body {
  padding: 20px;
  max-height: 75vh;
  overflow-y: auto;
}

/* LOBBY ROOMS SELECTOR - Hypersomnia card style */
.br-room-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.br-room-card {
  background: var(--hs-card-bg);
  border: 1.5px solid rgba(80, 100, 120, 0.4);
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  clip-path: polygon(6px 0%, calc(100% - 6px) 0%, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0% calc(100% - 6px), 0% 6px);
}

.br-room-card:hover {
  border-color: var(--hs-cyan);
  box-shadow: 0 0 12px var(--hs-cyan-glow);
  background: rgba(22, 32, 46, 0.95);
}

.br-room-card.selected {
  border-color: var(--hs-magenta);
  background: rgba(35, 16, 42, 0.9);
  box-shadow: 0 0 16px var(--hs-magenta-glow);
}

.br-room-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  color: #fff;
}

.br-room-fee {
  color: var(--hs-gold);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.br-room-pot {
  color: var(--hs-green);
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 0 6px var(--hs-green-glow);
}

/* 1v1 VS AND 4 PLAYER SLOTS CONTAINER */
.br-slots-container {
  background: rgba(10, 14, 20, 0.85);
  border: 1.5px solid var(--hs-panel-border);
  padding: 16px;
  margin-bottom: 18px;
  clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px);
}

.br-slots-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.br-slots-count {
  font-size: 16px;
  font-weight: 700;
  color: var(--hs-green);
  text-shadow: 0 0 8px var(--hs-green-glow);
}

.br-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.br-slots-grid.vs-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.br-slots-grid.vs-mode .br-slot {
  flex: 1;
  min-height: 120px;
}

.br-vs-badge {
  font-size: 26px;
  font-weight: 900;
  color: var(--hs-magenta);
  text-shadow: 0 0 16px var(--hs-magenta-glow);
  letter-spacing: 2px;
  padding: 0 10px;
  user-select: none;
  animation: pulse 1s infinite alternate;
}

.br-slot {
  background: rgba(16, 22, 32, 0.85);
  border: 1.5px dashed rgba(80, 100, 130, 0.4);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 105px;
  text-align: center;
  transition: all 0.2s;
  clip-path: polygon(6px 0%, calc(100% - 6px) 0%, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0% calc(100% - 6px), 0% 6px);
}

.br-slot.occupied {
  border: 1.5px solid var(--hs-cyan);
  background: rgba(10, 24, 38, 0.85);
  box-shadow: 0 0 12px var(--hs-cyan-glow);
}

.br-slot-avatar {
  font-size: 26px;
  margin-bottom: 4px;
}

.br-slot-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.br-slot-status {
  font-size: 11px;
  margin-top: 4px;
  color: var(--hs-green);
  font-weight: 600;
}

.br-slot-empty {
  color: rgba(180, 200, 220, 0.4);
  font-size: 12px;
  font-weight: 500;
}

/* COUNTDOWN BANNER */
.br-countdown-banner {
  background: var(--hs-magenta-bg);
  border: 1.5px solid var(--hs-magenta);
  color: #fff;
  padding: 12px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  animation: pulse 0.8s infinite alternate;
  box-shadow: 0 0 20px var(--hs-magenta-glow);
  display: none;
  clip-path: polygon(6px 0%, calc(100% - 6px) 0%, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0% calc(100% - 6px), 0% 6px);
}

@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

/* ACTION BUTTON */
.br-btn-action {
  width: 100%;
  padding: 12px;
  background: var(--hs-magenta-bg);
  border: 2px solid var(--hs-magenta);
  color: #fff;
  font-family: var(--hs-font);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 0 15px var(--hs-magenta-glow);
  clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px);
}

.br-btn-action:hover {
  background: rgba(224, 36, 195, 0.4);
  box-shadow: 0 0 25px var(--hs-magenta);
  transform: translateY(-1px);
}

.br-btn-action.leave {
  background: rgba(35, 12, 18, 0.9);
  border-color: #ff3366;
  box-shadow: 0 0 15px rgba(255, 51, 102, 0.5);
}

.br-btn-action.leave:hover {
  background: rgba(255, 51, 102, 0.35);
  box-shadow: 0 0 25px #ff3366;
}

/* GOOGLE & AUTH */
.br-btn-google {
  background: #ffffff;
  color: #222;
  border: 1px solid #ccc;
  font-family: var(--hs-font);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  clip-path: polygon(6px 0%, calc(100% - 6px) 0%, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0% calc(100% - 6px), 0% 6px);
}

.br-btn-google:hover {
  background: #f0f0f0;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.br-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #778899;
  font-size: 12px;
  margin: 14px 0;
  text-transform: uppercase;
}

.br-divider::before, .br-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(80, 100, 130, 0.35);
}
.br-divider::before { margin-right: 10px; }
.br-divider::after { margin-left: 10px; }

.br-form-group {
  margin-bottom: 14px;
}

.br-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #90a4ae;
}

.br-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(10, 14, 20, 0.9);
  border: 1.5px solid rgba(80, 100, 130, 0.4);
  color: #fff;
  font-family: var(--hs-font);
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.15s;
  clip-path: polygon(4px 0%, calc(100% - 4px) 0%, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0% calc(100% - 4px), 0% 4px);
}

.br-input:focus {
  border-color: var(--hs-cyan);
  box-shadow: 0 0 10px var(--hs-cyan-glow);
}

.br-auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(80, 100, 130, 0.35);
  padding-bottom: 8px;
}

.br-tab {
  background: rgba(18, 24, 34, 0.6);
  border: 1px solid rgba(80, 100, 130, 0.4);
  color: #8899a6;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--hs-font);
  cursor: pointer;
  padding: 6px 14px;
  clip-path: polygon(4px 0%, calc(100% - 4px) 0%, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0% calc(100% - 4px), 0% 4px);
}

.br-tab.active {
  color: #fff;
  border-color: var(--hs-green);
  background: rgba(10, 28, 20, 0.9);
  box-shadow: 0 0 8px var(--hs-green-glow);
}

/* LEADERBOARDS TABLE */
.br-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.br-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1.5px solid var(--hs-panel-border);
  color: #8899a6;
  font-size: 12px;
  text-transform: uppercase;
}

.br-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(80, 100, 130, 0.2);
}

.br-rank-1 { color: #ffd700; font-weight: 700; }
.br-rank-2 { color: #c0c0c0; font-weight: 700; }
.br-rank-3 { color: #cd7f32; font-weight: 700; }

@media (max-width: 600px) {
  .br-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #br-hud {
    padding: 0 10px;
  }
}

/* CYBERPUNK TOAST NOTIFICATIONS */
.br-toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(10, 16, 30, 0.95);
  border: 1px solid var(--hs-cyan);
  box-shadow: 0 0 25px rgba(0, 180, 216, 0.5), inset 0 0 10px rgba(0, 180, 216, 0.2);
  color: #fff;
  padding: 12px 28px;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.br-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ACTIVE DUEL IN-GAME HUD BAR */
.br-duel-bar {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 15px;
  background: rgba(8, 12, 20, 0.88);
  border: 1.5px solid rgba(0, 180, 216, 0.6);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 180, 216, 0.25);
  border-radius: 8px;
  padding: 6px 18px;
  z-index: 9999;
  font-family: var(--hs-font, sans-serif);
  color: #fff;
  backdrop-filter: blur(8px);
  user-select: none;
}

.duel-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.duel-box .player-name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.duel-box.duel-left .player-name {
  color: #00d2ff;
}

.duel-box.duel-right .player-name {
  color: #ff3366;
}

.duel-score-badge {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 15px;
  min-width: 45px;
  text-align: center;
}

.duel-box.duel-left .duel-score-badge {
  border-color: #00d2ff;
  color: #00d2ff;
}

.duel-box.duel-right .duel-score-badge {
  border-color: #ff3366;
  color: #ff3366;
}

.duel-center-info {
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0 14px;
}

.duel-center-info .duel-title {
  font-size: 12px;
  font-weight: 900;
  color: #ffbe0b;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.duel-center-info .duel-pot {
  font-size: 11px;
  color: #a0aec0;
}

.br-btn-claim-win {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  border: none;
  color: #000;
  font-weight: 900;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.br-btn-claim-win:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.7);
}

/* VICTORY OVERLAY MODAL */
.br-victory-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10005;
}

.br-victory-card {
  background: linear-gradient(180deg, #101926 0%, #080d15 100%);
  border: 2px solid #ffd700;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
  border-radius: 12px;
  padding: 30px 40px;
  text-align: center;
  max-width: 440px;
  width: 90%;
  color: #fff;
}

.br-victory-card h2 {
  font-size: 32px;
  margin: 10px 0;
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.br-victory-winner {
  font-size: 22px;
  font-weight: 800;
  color: #00d2ff;
  margin-bottom: 12px;
}

.br-victory-pot {
  font-size: 16px;
  color: #4ade80;
  font-weight: 700;
  margin-bottom: 24px;
}

