/* ==========================================================================
   PvPGN Remastered Launcher / Desktop App Client Stylesheet
   Inspired by Blizzard Battle.net Client & Remastered Dark Gaming UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg-app: #070b13;
  --bg-sidebar: #0b101c;
  --bg-header: #0a0e1a;
  --bg-card: #0f1728;
  --bg-card-hover: #162238;
  --bg-overlay: rgba(5, 8, 16, 0.85);

  --border-app: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(56, 189, 248, 0.15);
  --border-focus: #00d2ff;

  --wc3-gold: #f59e0b;
  --wc3-gold-glow: rgba(245, 158, 11, 0.45);
  --d2r-crimson: #ef4444;
  --d2r-crimson-glow: rgba(239, 68, 68, 0.45);
  --scr-cyan: #06b6d4;
  --scr-cyan-glow: rgba(6, 182, 212, 0.45);

  --accent-blue: #008fff;
  --accent-cyan: #00f0ff;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Orbitron', 'Inter', sans-serif;
  --font-gaming: 'Rajdhani', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  font-family: var(--font-main);
  background-color: #030509;
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   Desktop Application Window Frame
   ========================================================================== */
.launcher-window {
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  border: 1px solid var(--border-app);
}

/* On standard desktop viewports, give it a stylish app wrapper window */
@media (min-width: 1200px) {
  .launcher-window {
    width: 98vw;
    height: 96vh;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
  }
}

/* ==========================================================================
   Top Window Title Bar & Navigation
   ========================================================================== */
.launcher-titlebar {
  height: 48px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-app);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 100;
  flex-shrink: 0;
}

.titlebar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

.app-brand i {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan);
}

.app-version-badge {
  font-family: var(--font-gaming);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.titlebar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.title-nav-link {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.title-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.title-nav-link.active {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
}


/* Right Profile & Window Controls */
.titlebar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-launcher-login {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-launcher-login:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

.btn-launcher-register {
  background: linear-gradient(135deg, #0284c7, #008fff);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.5);
  padding: 0.3rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0, 143, 255, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-launcher-register:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  box-shadow: 0 0 18px rgba(0, 143, 255, 0.6);
  color: #ffffff;
}

/* User Profile Badge (Logged In View) */
.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-app);
  padding: 0.25rem 0.65rem 0.25rem 0.35rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-profile-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
}

.profile-avatar-wrap {
  position: relative;
  width: 26px;
  height: 26px;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #38bdf8;
}

.status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--bg-header);
}
.status-online { background-color: #22c55e; }
.status-away { background-color: #f59e0b; }
.status-busy { background-color: #ef4444; }

.profile-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}
.profile-tag span {
  color: var(--text-dim);
  font-weight: 400;
}

/* Window Action Buttons */
.window-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  border-left: 1px solid var(--border-app);
  padding-left: 0.75rem;
}

.win-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}

.win-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.win-btn.win-close:hover {
  background: #dc2626;
  color: #ffffff;
}

/* ==========================================================================
   Main Application Body Layout (Sidebar + Center Content + Right Drawer)
   ========================================================================== */
.launcher-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   Left Games Selection Sidebar (Icon Rail)
   ========================================================================== */
.launcher-game-rail {
  width: 76px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-app);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  gap: 0.85rem;
  z-index: 20;
  flex-shrink: 0;
}

.game-rail-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  align-items: center;
}

.game-icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #0e1526;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
  text-decoration: none;
}

.game-icon-btn i {
  font-size: 1.5rem;
  transition: transform 0.25s ease;
}

.game-icon-btn .game-rail-svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.game-icon-btn:hover .game-rail-svg,
.game-icon-btn.active .game-rail-svg {
  transform: scale(1.12);
  filter: drop-shadow(0 0 8px currentColor);
}

.stage-game-emblem {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.game-icon-btn .game-rail-tag {
  font-family: var(--font-gaming);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 2px;
  text-transform: uppercase;
}

/* Active Selection Indicators */
.game-icon-btn::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: #ffffff;
  border-radius: 0 4px 4px 0;
  transition: height 0.2s ease;
}

.game-icon-btn:hover {
  transform: scale(1.06);
  color: #ffffff;
  background: #151e36;
}

.game-icon-btn:hover::before {
  height: 18px;
}

/* Warcraft 3 Icon Theme */
.game-icon-btn.game-wc3:hover,
.game-icon-btn.game-wc3.active {
  border-color: var(--wc3-gold);
  color: #ffffff;
  box-shadow: 0 0 16px var(--wc3-gold-glow);
  background: linear-gradient(135deg, #1e1b10, #2c2108);
}
.game-icon-btn.game-wc3.active::before {
  height: 32px;
  background: var(--wc3-gold);
  box-shadow: 0 0 8px var(--wc3-gold);
}
.game-icon-btn.game-wc3 i {
  color: var(--wc3-gold);
}

/* Diablo 2 Icon Theme */
.game-icon-btn.game-d2r:hover,
.game-icon-btn.game-d2r.active {
  border-color: var(--d2r-crimson);
  color: #ffffff;
  box-shadow: 0 0 16px var(--d2r-crimson-glow);
  background: linear-gradient(135deg, #240c0f, #33080c);
}
.game-icon-btn.game-d2r.active::before {
  height: 32px;
  background: var(--d2r-crimson);
  box-shadow: 0 0 8px var(--d2r-crimson);
}
.game-icon-btn.game-d2r i {
  color: var(--d2r-crimson);
}

/* StarCraft Icon Theme */
.game-icon-btn.game-scr:hover,
.game-icon-btn.game-scr.active {
  border-color: var(--scr-cyan);
  color: #ffffff;
  box-shadow: 0 0 16px var(--scr-cyan-glow);
  background: linear-gradient(135deg, #071f2c, #0a2f42);
}
.game-icon-btn.game-scr.active::before {
  height: 32px;
  background: var(--scr-cyan);
  box-shadow: 0 0 8px var(--scr-cyan);
}
.game-icon-btn.game-scr i {
  color: var(--scr-cyan);
}

/* Bottom Rail Utility Buttons */
.game-rail-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.rail-util-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.rail-util-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-subtle);
}

.rail-badge-alert {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

/* ==========================================================================
   Center Game Viewport Stage
   ========================================================================== */
.launcher-main-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Dynamic Hero Stage Background */
.game-hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 520px;
  background-size: cover;
  background-position: center top;
  z-index: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.game-hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 11, 19, 0.4) 0%,
    rgba(7, 11, 19, 0.8) 60%,
    rgba(7, 11, 19, 1) 100%
  ),
  linear-gradient(
    90deg,
    rgba(7, 11, 19, 0.95) 0%,
    rgba(7, 11, 19, 0.4) 50%,
    rgba(7, 11, 19, 0.95) 100%
  );
}

/* Warcraft 3 Reforged Backdrop */
.stage-wc3 .game-hero-backdrop {
  background-image: url('../assets/images/w3header.jpg');
  background-position: center 15%;
}

/* Diablo 2 Resurrected Backdrop */
.stage-d2r .game-hero-backdrop {
  background-image: url('../assets/images/d2header.jpg');
  background-position: center 25%;
}

/* StarCraft Remastered Backdrop */
.stage-scr .game-hero-backdrop {
  background-image: url('../assets/images/scheader.jpg');
  background-position: center 15%;
}

/* Stage Inner Content */
.stage-content {
  position: relative;
  z-index: 5;
  padding: 2.5rem 2.5rem 4rem 2.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Game Title & Header Info */
.game-stage-header {
  margin-bottom: 2rem;
  max-width: 650px;
}

.stage-game-logo {
  max-width: 360px;
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.9));
  margin-bottom: 1rem;
  display: block;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: logoFadeIn 0.4s ease;
}

@keyframes logoFadeIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.game-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-gaming);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.stage-wc3 .game-title-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--wc3-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.stage-d2r .game-title-badge {
  background: rgba(239, 68, 68, 0.15);
  color: var(--d2r-crimson);
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.stage-scr .game-title-badge {
  background: rgba(6, 182, 212, 0.15);
  color: var(--scr-cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.game-main-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.game-tagline {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Primary Game Action Bar (Play / Install / Update Controls)
   ========================================================================== */
.game-action-panel {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.action-btn-main {
  min-width: 220px;
  height: 62px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Play Button State (Warcraft 3 / Ready to Play) */
.btn-play-state {
  background: linear-gradient(135deg, #0284c7, #008fff, #00d2ff);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(0, 143, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-play-state:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-play-state:active {
  transform: translateY(1px);
}

/* Install Button State (Diablo 2 / Needs Install) */
.btn-install-state {
  background: linear-gradient(135deg, #b91c1c, #dc2626, #ef4444);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-install-state:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Update Button State (StarCraft / Update Available) */
.btn-update-state {
  background: linear-gradient(135deg, #0891b2, #06b6d4, #22d3ee);
  color: #030814;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-update-state:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.85);
}

/* Running / In-Game State */
.btn-running-state {
  background: #1e293b;
  color: #4ade80;
  border: 1px solid #22c55e;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
  font-size: 1.1rem;
}

/* Region & Realm Selectors */
.game-config-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.config-dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.config-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.config-select-btn {
  background: rgba(15, 23, 40, 0.85);
  border: 1px solid var(--border-app);
  border-radius: 6px;
  color: #ffffff;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 170px;
  justify-content: space-between;
}

.config-select-btn:hover {
  border-color: var(--border-focus);
  background: #172033;
}

.config-select-btn i {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.game-cog-btn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(15, 23, 40, 0.85);
  border: 1px solid var(--border-app);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-cog-btn:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* ==========================================================================
   Game Feed & News Cards Grid
   ========================================================================== */
.stage-news-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: auto;
}

.launcher-news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-app);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.launcher-news-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.news-card-tag {
  font-family: var(--font-gaming);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.news-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.news-card-snippet {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

.news-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Right Social & Friends Drawer (Battle.net Style)
   ========================================================================== */
.launcher-friends-drawer {
  width: 250px;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border-app);
  display: flex;
  flex-direction: column;
  z-index: 30;
  flex-shrink: 0;
  transition: width 0.3s ease;
}

.friends-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-app);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.friends-header-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.friends-list-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.friends-category-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.5rem 0.25rem 0.25rem 0.25rem;
}

.friend-item-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.friend-item-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.friend-avatar {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.friend-details {
  flex: 1;
  overflow: hidden;
}

.friend-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-activity {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.friend-activity.offline {
  color: var(--text-dim);
}

/* ==========================================================================
   Bottom Download & Install Progress Bar Dock
   ========================================================================== */
.launcher-download-dock {
  background: #090e1a;
  border-top: 1px solid var(--border-app);
  padding: 0.65rem 1.5rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
}

.launcher-download-dock.active {
  display: flex;
}

.download-dock-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dock-spinner {
  color: var(--accent-cyan);
  animation: spin 1s linear infinite;
}

.dock-texts {
  display: flex;
  flex-direction: column;
}

.dock-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.dock-speed {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.dock-progress-wrapper {
  flex: 1;
  max-width: 450px;
  margin: 0 1.5rem;
}

.dock-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.dock-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284c7, #00f0ff);
  box-shadow: 0 0 10px #00f0ff;
  transition: width 0.2s ease;
}

/* ==========================================================================
   Install Game Modal Dialog
   ========================================================================== */
.modal-pvpgn-client {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.modal-pvpgn-client.open {
  display: flex;
}

.install-dialog-box {
  width: 540px;
  max-width: 92%;
  background: #0d1424;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-zoom-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-zoom-in {
  0% { transform: scale(0.94); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.install-header {
  background: #111a30;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-app);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.install-header-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.install-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.install-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.install-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.install-path-picker {
  display: flex;
  gap: 0.5rem;
}

.install-path-input {
  flex: 1;
  background: #070b13;
  border: 1px solid var(--border-app);
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  color: #ffffff;
  font-size: 0.85rem;
}

.btn-browse {
  background: #1e293b;
  border: 1px solid var(--border-app);
  border-radius: 6px;
  color: #ffffff;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.install-space-meter {
  background: #070b13;
  border: 1px solid var(--border-app);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.install-space-meter strong {
  color: #22c55e;
}

.install-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.install-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #e2e8f0;
  cursor: pointer;
}

.install-footer {
  background: #090e1a;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-app);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-cancel {
  background: transparent;
  border: 1px solid var(--border-app);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-start-install {
  background: linear-gradient(135deg, #0284c7, #008fff);
  border: 1px solid var(--accent-cyan);
  color: #ffffff;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 143, 255, 0.4);
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}
