/* ==========================================================================
   NGOLABIZ ARENA - DESIGN GAMER ULTRA-PREMIUM (FIEL AO MOCKUP DASHBOARD)
   Cores: Deep Dark (#090b10, #0f121c, #141824), Violeta Elétrico (#7c3aed), 
   Azul Ciano (#06b6d4), Dourado (#f59e0b), Vermelho Rubro (#ef4444).
   100% Responsivo e Ajustado para Ecrãs Móveis sem Vazamento de Texto
   ========================================================================== */

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

:root {
  --bg-app: #090b10;
  --bg-sidebar: #0f121c;
  --bg-topbar: #0f121c;
  --bg-card: #131722;
  --bg-card-hover: #181d2c;
  --bg-surface: #1a2030;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(124, 58, 237, 0.5);
  
  --neon-purple: #7c3aed;
  --neon-purple-light: #9333ea;
  --neon-purple-glow: 0 0 25px rgba(124, 58, 237, 0.45);
  
  --neon-cyan: #06b6d4;
  --neon-cyan-glow: 0 0 20px rgba(6, 182, 212, 0.4);
  
  --neon-gold: #f59e0b;
  --neon-green: #10b981;
  --neon-red: #ef4444;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-gamer: 'Rajdhani', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --sidebar-w: 240px;
  --topbar-h: 70px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  word-break: normal;
  overflow-wrap: break-word;
}

html, body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
}

/* ==========================================================================
   LAYOUT GERAL: SIDEBAR + MAIN CONTENT
   ========================================================================== */
.arena-app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow-x: hidden;
}

/* SIDEBAR FIXA ESTILO GAMER */
.arena-sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 14px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 0 6px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-gamer-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  box-shadow: var(--neon-purple-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-brand-title {
  font-family: var(--font-gamer);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: #fff;
}

.logo-brand-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  list-style: none;
  flex: 1;
}

.sidebar-nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.sidebar-nav-item a i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  color: var(--text-dim);
}

.sidebar-nav-item a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.sidebar-nav-item.active a {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.4);
}

.sidebar-nav-item.active a i {
  color: #fff;
}

.sidebar-footer-level {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-level-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-level-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--neon-purple);
}

.sidebar-level-name {
  font-family: var(--font-gamer);
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}

.sidebar-level-tag {
  font-size: 0.72rem;
  color: var(--neon-purple-light);
  font-weight: 600;
}

.xp-progress-bar-wrap {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.xp-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 10px;
}

.xp-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL (MAIN CONTENT)
   ========================================================================== */
.arena-main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: calc(100% - var(--sidebar-w));
  max-width: 100%;
  overflow-x: hidden;
}

.arena-topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  background: rgba(9, 11, 16, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mobile-menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.topbar-welcome-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar-welcome-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  font-weight: 700;
  white-space: nowrap;
}

.topbar-user-headline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topbar-user-name {
  font-family: var(--font-gamer);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-badge-pill {
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid var(--neon-purple);
  color: #c084fc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.topbar-search-wrap {
  flex: 1;
  max-width: 380px;
  position: relative;
}

.topbar-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.topbar-search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 8px 14px 8px 38px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}

.topbar-actions-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.action-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.action-icon-btn .badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--neon-red);
  border-radius: 50%;
}

.topbar-avatar-wrap {
  position: relative;
}

.topbar-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--neon-purple);
  display: block;
}

.online-status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--neon-green);
  border: 2px solid var(--bg-app);
  border-radius: 50%;
}

/* ==========================================================================
   PÁGINAS E CORPO DO DASHBOARD
   ========================================================================== */
.arena-page-body {
  padding: 20px 24px 60px 24px;
  flex: 1;
  max-width: 100%;
  overflow-x: hidden;
}

.dashboard-hero-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 20px;
  margin-bottom: 24px;
}

.hero-game-card {
  background: linear-gradient(135deg, rgba(20, 24, 36, 0.95), rgba(12, 14, 22, 0.95));
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 100%;
}

.hero-left-info {
  max-width: 60%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-badge-tag {
  display: inline-block;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-gamer);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 6px;
  word-break: break-word;
}

.hero-sub {
  font-size: 0.88rem;
  color: #c084fc;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 18px;
}

.hero-actions-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-launch-hero {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  border: none;
  color: #fff;
  font-family: var(--font-gamer);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 25px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
  text-decoration: none;
  white-space: nowrap;
}

.btn-hero-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

.hero-right-progress {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 18, 28, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 170px;
  text-align: center;
}

.circular-progress-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.circular-progress-wrap svg {
  transform: rotate(-90deg);
  width: 80px;
  height: 80px;
}

.circular-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.circular-fill {
  fill: none;
  stroke: url(#purple-gradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
}

.circular-text {
  position: absolute;
  font-family: var(--font-gamer);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

/* ==========================================================================
   COLEÇÃO DE JOGOS & GRIDS
   ========================================================================== */
.collection-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  max-width: 100%;
}

.panel-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title {
  font-family: var(--font-gamer);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.collection-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.game-item-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-subtle);
}

.game-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
}

.thumb-cards { background: linear-gradient(135deg, #eab308, #ca8a04); }
.thumb-fight { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.thumb-tictactoe { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.thumb-connect4 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.thumb-checkers { background: linear-gradient(135deg, #10b981, #059669); }
.thumb-battleship { background: linear-gradient(135deg, #7c3aed, #4f46e5); }

.game-item-details {
  flex: 1;
  min-width: 0;
}

.game-item-name {
  font-family: var(--font-gamer);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-item-genre {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-item-progress-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.game-item-progress-bar {
  height: 100%;
  border-radius: 4px;
}

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
  margin-bottom: 24px;
}

.activities-panel, .profile-spotlight-card, .achievements-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  max-width: 100%;
}

.activities-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.activity-mini-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.activity-badge-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 6px;
}

.badge-cyan { background: rgba(6, 182, 212, 0.15); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); }
.badge-orange { background: rgba(245, 158, 11, 0.15); color: var(--neon-gold); border: 1px solid var(--neon-gold); }
.badge-green { background: rgba(16, 185, 129, 0.15); color: var(--neon-green); border: 1px solid var(--neon-green); }
.badge-purple { background: rgba(124, 58, 237, 0.15); color: var(--neon-purple-light); border: 1px solid var(--neon-purple); }

.profile-stats-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  margin-bottom: 14px;
}

.stat-metric-value {
  font-family: var(--font-gamer);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.stat-metric-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.achievements-badges-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.achievement-badge-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge-hexagon-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   MOTOR VISUAL DE CARTAS 1v1 (UNO ANGOLA)
   ========================================================================== */
.card-battle-arena {
  width: 100%;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 0;
  margin: 0 auto;
}

.opp-cards-zone, .player-cards-zone {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.opp-info-tag {
  font-family: var(--font-gamer);
  font-size: 1rem;
  color: var(--neon-cyan);
  margin-bottom: 8px;
  text-align: center;
}

.opp-cards-row, .player-cards-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 4px;
  justify-content: center;
  scrollbar-width: thin;
}

.table-center-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 14px 0;
}

.draw-pile-btn {
  cursor: pointer;
  transition: transform 0.2s;
}

.draw-pile-btn:hover {
  transform: scale(1.05);
}

.uno-card {
  width: 62px;
  height: 94px;
  border-radius: 8px;
  border: 2px solid #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-gamer);
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.uno-card.can-play:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.uno-card.cant-play {
  opacity: 0.55;
  filter: grayscale(0.3);
}

.uno-card-back {
  width: 54px;
  height: 82px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid var(--neon-purple);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--neon-purple-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.uno-card-back.draw-deck {
  width: 64px;
  height: 94px;
  font-size: 0.72rem;
  font-weight: 800;
  border-color: var(--neon-gold);
  color: var(--neon-gold);
}

.card-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.card-blue { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.card-green { background: linear-gradient(135deg, #10b981, #059669); }
.card-yellow { background: linear-gradient(135deg, #eab308, #ca8a04); }
.card-wild { background: linear-gradient(135deg, #a855f7, #ec4899); }

.card-corner {
  position: absolute;
  font-size: 0.75rem;
}
.card-corner.top-left { top: 4px; left: 5px; }
.card-corner.bottom-right { bottom: 4px; right: 5px; }
.card-center-val { font-size: 1.5rem; }

.active-color-badge {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-muted);
}
.active-color-badge span { font-weight: 800; text-transform: uppercase; }
.active-color-badge.color-red span { color: #ef4444; }
.active-color-badge.color-blue span { color: #06b6d4; }
.active-color-badge.color-green span { color: #10b981; }
.active-color-badge.color-yellow span { color: #eab308; }

/* ==========================================================================
   MOTOR VISUAL DE LUTA NEON FIST 2D
   ========================================================================== */
.neon-fist-arena {
  width: 100%;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
}

.nf-hud-bars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nf-bar-wrap { flex: 1; min-width: 0; }
.nf-bar-label { font-family: var(--font-gamer); font-size: 0.95rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.nf-vs-badge { font-family: var(--font-gamer); font-size: 1.6rem; font-weight: 900; color: #ef4444; }

.nf-hp-bg {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.nf-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  transition: width 0.25s ease;
}
.nf-hp-fill.opp {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.nf-stage-scene {
  height: 220px;
  background: radial-gradient(circle at bottom, rgba(124, 58, 237, 0.3), #090b10 75%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 40px;
}

.nf-fighter {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
}

.fighter-sprite {
  font-size: 3.5rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 20px var(--neon-cyan);
}

.fighter-right .fighter-sprite {
  color: #ef4444;
  text-shadow: 0 0 20px #ef4444;
  transform: scaleX(-1);
}

.fighter-shadow {
  width: 50px;
  height: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  margin-top: -6px;
}

.nf-hit-fx {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-family: var(--font-gamer);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--neon-gold);
  text-shadow: 0 0 20px var(--neon-gold);
  pointer-events: none;
  transition: transform 0.2s ease;
}
.nf-hit-fx.active { transform: translate(-50%, -50%) scale(1.3); }

.nf-controls-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.btn-fight-action {
  padding: 12px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: #fff;
  font-family: var(--font-gamer);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-fight-action:hover {
  background: var(--bg-surface);
  border-color: var(--border-focus);
}

.btn-fight-action.btn-special {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-color: var(--neon-purple);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

/* Jogo da Velha, Connect 4, Damas */
.board-ttt-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.ttt-cell-box {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-gamer);
  font-size: 2.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.ttt-cell-box.x { color: var(--neon-cyan); border-color: var(--neon-cyan); text-shadow: 0 0 15px var(--neon-cyan); }
.ttt-cell-box.o { color: var(--neon-red); border-color: var(--neon-red); text-shadow: 0 0 15px var(--neon-red); }

/* ==========================================================================
   RADAR DE MATCHMAKING (MODAL)
   ========================================================================== */
.radar-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 16, 0.9);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.radar-modal-overlay.active { opacity: 1; pointer-events: auto; }

.radar-modal-box {
  background: var(--bg-sidebar);
  border: 1px solid var(--neon-purple);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.35);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.radar-sonar-disc {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid var(--neon-purple);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
}

.radar-sonar-sweep {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(124, 58, 237, 0.4) 0deg, transparent 90deg);
  animation: radarRotate 2s linear infinite;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-center-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--neon-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 2;
}

.opponents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.opponent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.opp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--neon-cyan);
}

.opp-name {
  font-family: var(--font-gamer);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.opp-province {
  font-size: 0.72rem;
  color: var(--neon-gold);
}

.btn-challenge-opp {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: none;
  color: #fff;
  font-family: var(--font-gamer);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */
.arena-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(15, 18, 28, 0.96);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--border-subtle);
  z-index: 1000;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
}

.bottom-nav-link i { font-size: 1.15rem; }
.bottom-nav-link.active { color: var(--neon-purple-light); }

.bottom-nav-link.center-play {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-top: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--bg-app);
}

/* ==========================================================================
   CORREÇÃO ESTREITA DE RESPONSIVIDADE MOBILE (SMARTPHONES)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
    --topbar-h: 60px;
  }

  body {
    font-size: 13px;
  }

  .arena-sidebar {
    transform: translateX(-100%);
    width: 260px;
  }
  .arena-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close-btn {
    display: block;
  }

  .arena-main-content {
    margin-left: 0;
    width: 100%;
  }

  .mobile-menu-toggle {
    display: flex;
  }
  .topbar-search-wrap {
    display: none;
  }
  .arena-topbar {
    padding: 0 12px;
  }

  .arena-page-body {
    padding: 12px 10px 80px 10px;
  }

  .dashboard-hero-grid, .dashboard-lower-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-game-card {
    flex-direction: column;
    padding: 18px 14px;
    gap: 16px;
  }

  .hero-left-info {
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .hero-desc {
    font-size: 0.82rem;
    margin-bottom: 14px;
  }

  .hero-right-progress {
    width: 100%;
    min-width: unset;
  }

  .activities-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .achievements-badges-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .profile-stats-metrics-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .opponents-grid {
    grid-template-columns: 1fr;
  }

  .arena-mobile-bottom-nav {
    display: flex;
  }

  .nf-stage-scene {
    height: 180px;
    padding: 15px 20px;
  }
  .fighter-sprite {
    font-size: 2.8rem;
  }

  .btn-fight-action {
    padding: 10px 4px;
    font-size: 0.85rem;
  }

  .uno-card {
    width: 52px;
    height: 78px;
  }
  .card-center-val {
    font-size: 1.2rem;
  }
}
