/* ============================================================================
   Tux Racer — estilos do menu principal (complementa main.css).
   ========================================================================== */
.view.hidden { display: none; }
.hidden { display: none !important; }

.brand { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }

.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab {
  flex: 1; padding: 10px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); color: var(--muted);
  border: 1px solid var(--ice-line); font-weight: 600;
}
.tab.active { background: rgba(53, 167, 255, 0.18); color: var(--ice-cyan); }

.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input, .auth-form select, #form-create input, #form-create select {
  padding: 12px 14px; border-radius: 10px; font-size: 15px;
  background: #0a1622; color: var(--text); border: 1px solid var(--ice-line);
}
.sep { text-align: center; color: var(--muted); margin: 16px 0 12px; font-size: 13px; }

.btn.ghost { background: transparent; border: 1px solid var(--ice-line); color: var(--ice-cyan); }
.btn.danger { background: linear-gradient(180deg, #ff5d8f, #d6346a); }
.btn.discord { background: linear-gradient(180deg, #5865f2, #4250d0); width: 100%; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.welcome { color: var(--muted); margin: 0 0 18px; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu-grid .btn { padding: 16px; }

.row { display: flex; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }

.rooms-list, .members { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.rooms-list li, .members li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ice-line); border-radius: 10px;
}
.rooms-list .muted, .muted { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); text-align: center; padding: 18px; }

.chat { margin-top: 18px; }
.chat-log {
  height: 160px; overflow-y: auto; background: #0a1622; border: 1px solid var(--ice-line);
  border-radius: 10px; padding: 10px; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px;
}
.chat-log strong { color: var(--ice-cyan); }
.chat-input { display: flex; gap: 8px; margin-top: 8px; }
.chat-input input { flex: 1; padding: 10px 12px; border-radius: 10px; background: #0a1622; color: var(--text); border: 1px solid var(--ice-line); }

.ranking { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.ranking th, .ranking td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--ice-line); font-size: 14px; }
.ranking th { color: var(--ice-cyan); font-weight: 600; }

.profile-stats { display: flex; gap: 18px; margin-top: 14px; }
.profile-stats div { display: flex; flex-direction: column; }
.profile-stats .value, .hud .value { font-size: 22px; font-variant-numeric: tabular-nums; }
.profile-stats .label { color: var(--muted); font-size: 12px; }

.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--muted); }

.hud { display: flex; gap: 14px; margin-bottom: 16px; }
.hud .stat { flex: 1; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--ice-line); border-radius: 10px; padding: 12px; }
.canvas-wrap { position: relative; height: 360px; border-radius: 12px; overflow: hidden; border: 1px solid var(--ice-line); }
.game-canvas { width: 100%; height: 100%; display: block; background: linear-gradient(180deg, #0d1b2a, #16314a); }
.canvas-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); line-height: 1.6; padding: 20px; background: rgba(13, 27, 42, 0.85);
}
.results { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.results h3 { color: var(--ice-cyan); margin: 0 0 6px; }
