body {
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  color: #e2e2e2;
  background: url('/images/fundo.png') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  gap: 10px;
}
header {
  background: rgba(0, 0, 0, 0.75);
  border-bottom: 3px solid #c41c00;
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: 0 0 15px #000000aa;
}
header h1 {
  font-size: 2.8rem;
  color: #c41c00;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
nav a {
  color: #ddd;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
}
nav a:hover {
  color: #c41c00;
}
.hero {
  max-width: 1300px;
  margin: auto;
  padding: 3rem 2rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
}
#console-wrapper {
  width: 900px;
  height: 65vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #13e50b;
}
#instructions {
  background: #111;
  border: 2px solid #1a6e05;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 0 15px #1a6e05;
  max-height: 180px;
  overflow-y: auto;
}
#instructions h2 {
  margin-top: 0;
  color: #ff3c00;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
}
#console-container {
  background: #0b0b0c;
  background-image: url("https://soh-soldierofhell.com/images/banner.jpeg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40%;
  border: 6px solid #540000;
  box-shadow: 0 0 50px #540000;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  color: #13e50b;
}
#server-header {
  padding: 6px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #a2dba2;
  background: rgba(74, 64, 64, 0.95);
  border: none;
}
#server-header div {
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 3px;
  background: transparent;
  border: none;
  font-size: 15px;
}
#score { color: #ff3c00; }
#gameTime { color: #00ff88; }
#nextMap { color: #4da6ff; }
#playerCount { color: #ffd700; }
#status-container {
  color: rgb(255, 0, 0);
  font-weight: bold;
  text-align: center;
  margin-top: 5px;
}
#terminal {
  flex: 1;
  padding: 6px;
  overflow-y: auto;
  font-size: 12px;
  color: #dcdcdc;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.6);
}
#nickForm {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-top: 1px solid #6f806f;
}
#nickInput {
  flex: 1;
  padding: 10px;
  background: #222;
  border: 2px solid #1a6e05;
  outline: none;
  color: #e2e2e2;
  font-family: inherit;
  font-size: 14px;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}
#nickInput:focus { border-color: #28a745; }
#submitBtn {
  background: #6f806f;
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: 0.2s;
  border-radius: 4px;
}
#submitBtn:hover { background: #889988; }
.kill {
  color: #00ff88;
  font-weight: bold;
  text-shadow: 0 0 5px #ff0800;
}
.dead {
  color: #ff4d4d;
  font-weight: bold;
  text-shadow: 0 0 5px #ff4d4d;
}
.system {
  color: #ffffff;
  font-weight: bold;
  text-shadow: 0 0 5px #4da6ff;
}
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}
.modal-overlay.hidden { display: none; }
.modal-content {
  background: #111;
  padding: 20px 30px;
  border: 2px solid #1a6e05;
  border-radius: 10px;
  color: #13e50b;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 0 15px #1a6e05;
}
#modalCloseBtn {
  margin-top: 15px;
  background-color: #1a6e05;
  border: none;
  color: #13e50b;
  padding: 10px 20px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  font-size: 14px;
}
#modalCloseBtn:hover { background-color: #3ea720; }

/* ===== Painel lateral estilo scoreboard HLL ===== */
#players-panel {
  display: flex;
  gap: 8px;
  height: 85vh;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  box-sizing: border-box;
  justify-content: center;
}

.team-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  box-shadow: inset 0 0 10px #000;
  overflow: hidden;
  color: #d3d3d3;
  font-size: 13px;
}

.team-container h2 {
  margin: 0;
  padding: 6px 0;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #111, #070707);
  border-bottom: 1px solid #222;
  color: #00ff66;
}

.players-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: 'Orbitron', sans-serif;
}

.players-table thead th {
  position: sticky;
  top: 0;
  background: #141414;
  color: #999;
  padding: 6px 4px;
  border-bottom: 1px solid #222;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
}

.players-table tbody tr {
  transition: background 0.1s ease;
}

.players-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.players-table td {
  padding: 4px;
  text-align: center;
  border-bottom: 1px solid #1c1c1c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

/* cores por time */
.team-container.blue {
  border-top: 2px solid #007bff;
}
.team-container.red {
  border-top: 2px solid #ff2a2a;
}

/* topo colorido igual ao scoreboard */
.team-container.blue h2 {
  background: linear-gradient(to bottom, #0b1a33, #0a0f1a);
  color: #66b3ff;
}
.team-container.red h2 {
  background: linear-gradient(to bottom, #330b0b, #1a0a0a);
  color: #ff5555;
}

@media (max-width: 768px) {
  #console-wrapper, #players-panel { width: 100%; height: auto; }
  #server-header { font-size: 11px; }
  #terminal { font-size: 11px; }
  #nickInput, #submitBtn { font-size: 12px; padding: 8px; }
}
@media (max-width: 500px) {
  #console-wrapper, #players-panel { width: 100%; height: auto; }
  #server-header { font-size: 10px; padding: 4px; }
  #terminal { font-size: 10px; }
  #nickInput, #submitBtn { font-size: 12px; padding: 8px; }
}
footer {
  background: rgba(0, 0, 0, 0.8);
  padding: 2rem;
  text-align: center;
  color: #aaa;
  border-top: 2px solid #c41c00;
  margin-top: 4rem;
}
footer a {
  color: #c41c00;
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}
footer a:hover {
  color: #ffffff;
}
.unit-type h3 {
  margin: 6px 0;
  padding: 4px 8px;
  background: #111;
  color: #ffcc00;
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: 1px solid #222;
}

.squad-block {
  border-bottom: 1px solid #1c1c1c;
  background: rgba(15, 15, 15, 0.5);
  margin-bottom: 4px;
}

.squad-header {
  background: #0b0b0b;
  padding: 4px 6px;
  font-weight: bold;
  color: #ccc;
  border-bottom: 1px solid #1f1f1f;
  display: flex;
  align-items: center;
  gap: 6px;
}

.squad-header i {
  color: #777;
}
.squad-block {
  border-bottom: 1px solid #1c1c1c;
  background: rgba(15, 15, 15, 0.5);
  margin-bottom: 6px;
}

.squad-header {
  background: #0b0b0b;
  padding: 4px 6px;
  font-weight: bold;
  color: #ccc;
  border-bottom: 1px solid #1f1f1f;
  display: flex;
  align-items: center;
  gap: 6px;
}

.squad-header i {
  color: #777;
}

.players-table td, .players-table th {
  font-size: 12px;
}
.unit-type h3 {
  margin: 6px 0;
  padding: 4px 8px;
  background: #111;
  color: #ffcc00;
  font-size: 13px;
  text-transform: uppercase;
  border-bottom: 1px solid #222;
}

.squad-block {
  border-bottom: 1px solid #1c1c1c;
  background: rgba(15, 15, 15, 0.5);
  margin-bottom: 6px;
}

.squad-header {
  background: #0b0b0b;
  padding: 4px 6px;
  font-weight: bold;
  color: #ccc;
  border-bottom: 1px solid #1f1f1f;
  display: flex;
  align-items: center;
  gap: 6px;
}

.squad-header i {
  color: #777;
}
.squad-block {
  margin-bottom: 8px;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: rgba(0,0,0,0.3);
  overflow: hidden;
}

.squad-header {
  cursor: pointer;
  padding: 6px 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(0,0,0,0.5);
  user-select: none;
}

.squad-header i {
  transition: transform 0.3s;
}

.players-wrapper {
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease;
}
.players-table {
  width: 100%;
  border-collapse: collapse;
  color: #d6d6d6;
  background-color: #0e0e0e;
}

.players-table thead th {
  background-color: #161616;
  color: #aaa;
  font-size: 11px;
  font-weight: bold;
  padding: 6px;
  text-align: center;
  border-bottom: 1px solid #222;
}

.players-table tbody td {
  font-size: 12px;
  padding: 5px;
  border-bottom: 1px solid #1a1a1a;
  text-align: center;
}

.squad-header {
  background: #121212;
  padding: 6px 10px;
  color: #ddd;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 13px;
  transition: background 0.2s ease;
}

.squad-header:hover {
  background: #1a1a1a;
}

.unit-type h3 {
  background: #0b0b0b;
  color: #f4b400;
  font-weight: bold;
  font-size: 13px;
  padding: 5px 10px;
  border-bottom: 1px solid #222;
  text-transform: uppercase;
}

.fa-caret-right {
  transition: transform 0.3s;
}

.players-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}
