.page_game_tron {
  width: 100%;
}
#id_game_tron {
  width: 100%;
}

/* === Header === */
.gt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(135deg, #0a0a2e 0%, #1a1a3e 100%);
  border-bottom: 2px solid #00ffff;
}
.gt-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gt-title h1 {
  margin: 0;
  font-size: 15pt;
  font-weight: 700;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0,255,255,0.5);
}
.gt-title-icon {
  font-size: 14pt;
  color: #00ffff;
}

/* === Tabs === */
.gt-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #eee;
  background: #fafbfc;
}
.gt-tab {
  padding: 10px 20px;
  font-size: 10pt;
  font-weight: 600;
  color: #777;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gt-tab:hover {
  color: #333;
  background: #f0f2f5;
}
.gt-tab-active {
  color: #00cccc;
  border-bottom-color: #00cccc;
}

/* === Game area === */
.gt-game-section {
  padding: 16px;
  background: #0a0a2e;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.gt-canvas-wrapper {
  position: relative;
  width: 100%;
}
.gt-canvas-wrapper canvas {
  display: block;
  max-height: calc(100vh - 200px);
  aspect-ratio: 80 / 50;
  margin: 0 auto;
  border: 2px solid #00ffff33;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0,255,255,0.1);
}

/* === Overlay === */
.gt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(10,10,46,0.92);
  border-radius: 4px;
  z-index: 10;
}
.gt-overlay.hidden {
  display: none;
}
.gt-overlay-title {
  font-size: 32px;
  font-weight: 700;
  color: #00ffff;
  text-shadow: 0 0 20px rgba(0,255,255,0.6);
  margin-bottom: 10px;
}
.gt-overlay-subtitle {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 20px;
}
.gt-overlay-countdown {
  font-size: 72px;
  font-weight: 700;
  color: #ffff00;
  text-shadow: 0 0 30px rgba(255,255,0,0.5);
  animation: gtPulse 1s ease-in-out infinite;
}
@keyframes gtPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.gt-overlay-winner {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0;
}
.gt-overlay-restart {
  font-size: 13px;
  color: #666;
  margin-top: 10px;
}

/* === Player list (in game) === */
.gt-players-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.gt-player-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 9pt;
  font-weight: 600;
  color: white;
  border: 2px solid;
}
.gt-player-badge-dead {
  opacity: 0.35;
  text-decoration: line-through;
}
.gt-player-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* === Waiting players list === */
.gt-waiting-players {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}
.gt-waiting-player {
  color: #ccc;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gt-waiting-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  animation: gtDotPulse 1.5s ease-in-out infinite;
}
@keyframes gtDotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === Controls hint === */
.gt-controls {
  color: #555;
  font-size: 9pt;
  text-align: center;
  padding: 8px;
  background: #0a0a2e;
}
.gt-controls kbd {
  display: inline-block;
  padding: 2px 8px;
  background: #1a1a3e;
  color: #00ffff;
  border: 1px solid #00ffff44;
  border-radius: 4px;
  font-family: monospace;
  font-size: 9pt;
  margin: 0 2px;
}

/* === Leaderboard === */
.gt-leaderboard {
  padding: 16px;
}
.gt-leaderboard-title {
  font-size: 9pt;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.gt-table-wrapper {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}
.gt-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 10pt;
}
.gt-table th {
  background: linear-gradient(135deg, #f1f3f5 0%, #e8eaed 100%);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 9pt;
  color: #555;
  text-align: left;
  border-bottom: 2px solid #ddd;
}
.gt-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.gt-table tr:nth-child(even) td {
  background-color: #fafbfc;
}
.gt-table tr:hover td {
  background-color: #f0f7ff;
}
.gt-rank {
  font-weight: 700;
  font-size: 12pt;
  width: 40px;
  text-align: center;
}
.gt-rank-1 { color: #ffd700; }
.gt-rank-2 { color: #aaa; }
.gt-rank-3 { color: #cd7f32; }
.gt-player-me td {
  background-color: #e8f5e9 !important;
  font-weight: 600;
}
.gt-wins-cell {
  font-weight: 700;
  color: #00cccc;
  font-size: 11pt;
}
.gt-no-scores {
  text-align: center;
  padding: 30px;
  color: #999;
  font-size: 10pt;
}

/* === Responsive mobile === */
@media (max-width: 768px) {
  .gt-game-section {
    padding: 8px;
  }
  .gt-overlay-title {
    font-size: 22px;
  }
  .gt-overlay-countdown {
    font-size: 48px;
  }
}
