.page_game_gecofist {
  width: 100%;
}

#id_game_gecofist {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
}

/* === Header === */
.gf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1a0505 0%, #2a0a0a 100%);
  border-bottom: 2px solid #cc0000;
}
.gf-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gf-title h1 {
  margin: 0;
  font-size: 15pt;
  font-weight: 700;
  color: #ff4444;
}
.gf-title-icon {
  font-size: 14pt;
  color: #ff4444;
}

/* === Tabs === */
.gf-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #eee;
  background: #fafbfc;
}
.gf-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;
}
.gf-tab:hover {
  color: #333;
  background: #f0f2f5;
}
.gf-tab-active {
  color: #cc0000;
  border-bottom-color: #cc0000;
}

/* === Game container === */
.gf-game-section {
  padding: 16px;
  display: flex;
  justify-content: center;
}
.gf-game-wrapper {
  position: relative;
  width: 100%;
}
.gf-game-iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 3px solid #cc0000;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(204, 0, 0, 0.2);
  background: #000;
}

/* === Leaderboard === */
.gf-leaderboard {
  padding: 16px;
}
.gf-leaderboard-title {
  font-size: 9pt;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.gf-table-wrapper {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}
.gf-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 10pt;
}
.gf-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;
}
.gf-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.gf-table tr:nth-child(even) td {
  background-color: #fafbfc;
}
.gf-table tr:hover td {
  background-color: #f0f7ff;
}
.gf-rank {
  font-weight: 700;
  font-size: 12pt;
  width: 40px;
  text-align: center;
}
.gf-rank-1 { color: #ffd700; }
.gf-rank-2 { color: #aaa; }
.gf-rank-3 { color: #cd7f32; }
.gf-player-me td {
  background-color: #e8f5e9 !important;
  font-weight: 600;
}
.gf-medal {
  font-size: 14pt;
}
.gf-score-cell {
  font-weight: 700;
  color: #cc0000;
  font-size: 11pt;
}
.gf-games-count {
  color: #999;
  font-size: 9pt;
}
.gf-date {
  color: #999;
  font-size: 9pt;
}
.gf-no-scores {
  text-align: center;
  padding: 30px;
  color: #999;
  font-size: 10pt;
}

/* === Loading === */
.gf-loading {
  text-align: center;
  padding: 20px;
  color: var(--main-bg-color);
}
.gf-saving {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #ffd700;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 9pt;
  z-index: 20;
}

/* === Responsive mobile === */
@media (max-width: 768px) {
  #id_game_gecofist {
    width: auto;
    margin: 0 10px;
  }
  .gf-game-iframe {
    height: 400px;
  }
}
