/*
Theme Name: turnir
Theme URI: https://racevipclub.com
Author: RaceVIP
Description: Full package theme with isolated ACC Dashboard app (gp-stats structure)
Version: 3.0.1
*/



/* ========== WP glue / layout hardening ========== */
:root { color-scheme: dark; }
body { overflow-x: hidden; }
.tm-layout { min-height: 100vh; }
.container { max-width: 1200px; }
.cs_site_branding img { height: 48px; width: auto; display: block; }
.cs_nav_list { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; }
.cs_nav_list li { margin: 0; padding: 0; }
.cs_nav_list a { text-decoration: none; }
.cs_main_header_in { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cs_main_header_center { flex: 1 1 auto; display: flex; justify-content: center; }
@media (max-width: 991px) {
  .cs_main_header_in { flex-wrap: wrap; }
  .cs_main_header_center { width: 100%; order: 3; justify-content: flex-start; }
  .cs_nav_list { justify-content: flex-start; gap: 14px; }
}

/* Make anchor scrolling feel like the reference site */
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

/* Prevent random text nodes from breaking layout (safety) */
body > * { max-width: 100%; }

/* ========== Portal UI (moved from old inline header CSS) ========== */
.tm_hero_wrap {
  background: radial-gradient(circle at top left, #1c1130 0, #05000b 55%, #000 100%);
  border-radius: 32px;
  padding: 32px 28px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.tm_hero_badge { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #62f6ff; margin-bottom: 8px; }
.tm_hero_title { font-size: 32px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 12px; line-height: 1.15; }
.tm_hero_sub { opacity: 0.8; max-width: 560px; font-size: 14px; line-height: 1.6; }
.tm_hero_stats { display: flex; flex-wrap: wrap; gap: 18px; margin: 20px 0; }
.tm_stat_item { min-width: 110px; }
.tm_stat_label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.65; margin-bottom: 4px; }
.tm_stat_value { font-size: 20px; font-weight: 600; }
.tm_status_row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 10px; font-size: 13px; opacity: 0.85; }
.tm_status_dot { display: inline-block; width: 9px; height: 9px; border-radius: 999px; margin-right: 6px; background: #ff4b81; }
.tm_status_dot.tm_online { background: #26ff6b; }
.tm_hero_actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.tm_hero_side { position: absolute; right: 32px; bottom: 32px; max-width: 320px; text-align: right; opacity: 0.92; }
.tm_hero_tagline { font-size: 13px; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 8px; opacity: 0.75; }
.tm_hero_side_badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.08); margin-bottom: 12px;
}
.tm_hero_side_badge span { font-weight: 600; }
.tm_hero_side_note { font-size: 12px; opacity: 0.7; }
.tm_track_map_wrap {
  margin-top: 8px; width: 260px; height: 160px; border-radius: 24px;
  background: radial-gradient(circle at top, rgba(255,255,255,0.06) 0, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0.95) 100%);
  border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  margin-left: auto; position: relative; overflow: hidden;
}
.tm_track_map_wrap img { max-width: 100%; max-height: 100%; opacity: 0.9; filter: drop-shadow(0 0 16px rgba(0,0,0,0.7)); }
.tm_track_map_label { position: absolute; bottom: 10px; right: 14px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.75; }

.tm_server_row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 12px; opacity: 0.9; }
.tm_server_chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: rgba(9,5,30,0.95); border: 1px solid rgba(255,255,255,0.08); white-space: nowrap;
}
.tm_server_chip_label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.7; }

.tm_filters_toggle_row { margin-top: 32px; display: flex; justify-content: flex-start; align-items: center; }
.tm_filters_toggle_row .cs_btn { padding: 6px 18px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; }

.tm_filters_wrap {
  margin-top: 12px; margin-bottom: 16px; background: rgba(6,0,24,0.9);
  border-radius: 20px; padding: 16px 18px; border: 1px solid rgba(255,255,255,0.05);
  display: none; flex-wrap: wrap; gap: 12px; align-items: center;
}
.tm_filters_wrap.is-open { display: flex; }
.tm_filters_title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.7; margin-right: 14px; }
.tm_field { position: relative; flex: 1 1 160px; min-width: 140px; }
.tm_field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.6; margin-bottom: 3px; }
.tm_field input, .tm_field select {
  width: 100%; background: rgba(9,5,30,0.96); border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08); padding: 8px 12px; font-size: 13px; color: #fff; outline: none;
}
.tm_view_toggle { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.75; cursor: pointer; white-space: nowrap; }

.tm_leaderboard_card {
  background: radial-gradient(circle at top, #1a0c2f 0, #05000b 60%, #000 100%);
  border-radius: 24px; padding: 18px 18px 14px;
  border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 0 32px rgba(0,0,0,0.7);
}
.tm_leaderboard_head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 8px; flex-wrap: wrap; }
.tm_leaderboard_title { font-size: 14px; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.8; }
.tm_leaderboard_hint { font-size: 11px; opacity: 0.6; }

.tm_leaderboard_table { width: 100%; border-collapse: collapse; font-size: 12px; }
.tm_leaderboard_table thead { text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; opacity: 0.7; }
.tm_leaderboard_table th, .tm_leaderboard_table td {
  padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: middle; white-space: nowrap;
}
.tm_no_data { padding: 16px 4px 8px; font-size: 12px; opacity: 0.7; }
.tm_leaderboard_footer { display: flex; justify-content: center; margin-top: 6px; }
.tm_leaderboard_footer .cs_btn { min-width: 220px; padding: 6px 18px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; }

.tm_rss_ticker_wrap { position: relative; z-index: 890; background: rgba(5,0,11,0.96); border-bottom: 1px solid rgba(255,255,255,0.06); }
.tm_rss_ticker { display: flex; align-items: center; overflow: hidden; white-space: nowrap; font-size: 12px; min-height: 32px; padding: 6px 0; gap: 16px; }
.tm_rss_label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.7; flex: 0 0 auto; }
.tm_rss_track { position: relative; flex: 1 1 auto; overflow: hidden; }
.tm_rss_items { display: inline-block; white-space: nowrap; padding-left: 100%; animation: tmTickerScroll 55s linear infinite; }
.tm_rss_ticker:hover .tm_rss_items { animation-play-state: paused; }
.tm_rss_item { display: inline-flex; align-items: center; margin-right: 18px; }
.tm_rss_item a { text-decoration: none; color: #ffffff; opacity: 0.86; }
.tm_rss_item a:hover { opacity: 1; text-decoration: underline; }
.tm_rss_meta { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.65; margin-right: 6px; }
.tm_rss_sep { display: inline-block; margin: 0 10px; opacity: 0.5; }
.tm_rss_status { opacity: 0.7; font-size: 12px; }
@keyframes tmTickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

@media (max-width: 991px) {
  .tm_hero_side { position: static; text-align: left; margin-top: 24px; max-width: none; }
  .tm_track_map_wrap { margin-left: 0; }
  .tm_hero_wrap { padding: 24px 18px; }
  .tm_hero_title { font-size: 24px; }
}

/* Downloads card */
.tm_download_card {
  border-radius: 28px; padding: 18px 18px 16px;
  background: radial-gradient(circle at top, rgba(255,255,255,0.04) 0, rgba(0,0,0,0.72) 60%, rgba(0,0,0,0.95) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  height: 100%; display: flex; flex-direction: column; gap: 12px;
}
.tm_download_img {
  width: 100%; height: 160px; border-radius: 22px; object-fit: cover;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
}
.tm_download_title { font-size: 14px; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.9; margin: 0; }
.tm_download_desc { font-size: 13px; opacity: 0.82; margin: 0; flex: 1 1 auto; }
.tm_download_meta { font-size: 11px; opacity: 0.65; letter-spacing: 0.08em; text-transform: uppercase; }
.tm_admin_link {
  position: fixed; right: 16px; bottom: 16px; z-index: 9998;
  opacity: 0.55; font-size: 12px; text-decoration: none; color: #fff;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 12px; border-radius: 999px;
}
.tm_admin_link:hover { opacity: 1; }


/* ===== Editable Hero additions ===== */
.tm_hero_wrap { background-repeat:no-repeat; }
.tm_hero_right_image { margin-bottom: 14px; text-align:center; }
.tm_hero_right_image img { max-width: 100%; height: auto; border-radius: 14px; }
.tm_winner_card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: 14px; padding: 14px; margin: 14px 0; }
.tm_winner_head { display:flex; gap: 12px; align-items:center; }
.tm_winner_avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.15); }
.tm_winner_title { font-size: 12px; opacity:.8; text-transform: uppercase; letter-spacing:.06em; }
.tm_winner_name { font-size: 18px; font-weight: 700; }
.tm_winner_time { font-size: 22px; font-weight: 800; margin-top: 10px; }
.tm_winner_note { opacity:.8; margin-top: 6px; font-size: 13px; }
.tm_banner { display:block; margin: 10px 0; border-radius: 14px; overflow:hidden; border: 1px solid rgba(255,255,255,0.10); }
.tm_banner img { width:100%; height:auto; display:block; }


/* Section lead text */
.tm_section_lead{max-width:900px;margin:0 auto;opacity:.82;font-size:14px;line-height:1.7;}
.tm_small_note{margin:0;}

/* header/nav drop a bit lower (quick override) */
.cs_site_header,
.cs_header,
header{
  padding-top: 14px !important;
}

/* === TMC FOOTER LEGAL STYLES === */
.tmc-footer-bottom{
  margin-top: 28px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: radial-gradient(1200px 220px at 50% 0%, rgba(140,70,255,.14), rgba(0,0,0,0));
}
.tmc-footer-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.tmc-legal-menu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tmc-legal-menu li{ margin: 0; padding: 0; }

.tmc-legal-menu a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(170,120,255,.26);
  background: rgba(20,12,35,.55);
  color: rgba(255,255,255,.86);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .02em;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  backdrop-filter: blur(10px);
}
.tmc-legal-menu a:hover{
  transform: translateY(-1px);
  border-color: rgba(200,150,255,.45);
  box-shadow: 0 0 0 3px rgba(150,80,255,.12), 0 0 26px rgba(140,70,255,.18);
  background: rgba(26,16,46,.65);
}
.tmc-footer-note{
  font-size: 13px;
  color: rgba(255,255,255,.62);
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 820px){
  .tmc-footer-inner{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .tmc-footer-note{ white-space: normal; }
  .tmc-legal-menu{ justify-content: center; }
}

/* === TMC FOOTER DEDUPE === */
/* Hide legacy footer lists to prevent duplicates (keep our .tmc-footer-bottom block) */
footer ul:not(.tmc-legal-menu),
footer .footer-links,
footer .legal,
footer .footer_legal,
footer .footer-legal{
  display: none !important;
}
/* Hide legacy copyright if exists outside our block */
footer .copyright,
footer .site-info{
  display: none !important;
}

/* === TMC FOOTER FINAL TUNE === */
.tmc-footer-bottom{ width: 100%; }
.tmc-legal-menu{ list-style:none !important; }
.tmc-legal-menu li::marker{ content: "" !important; }

/* === TMC FOOTER LEGAL FINAL === */
.tmc-footer-bottom{
  width: 100%;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: radial-gradient(1200px 220px at 50% 0%, rgba(140,70,255,.14), rgba(0,0,0,0));
}
.tmc-footer-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.tmc-legal{ display: flex; align-items: center; }
.tmc-legal-menu{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
.tmc-legal-menu li{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.tmc-legal-menu li::marker{ content: "" !important; }

.tmc-legal-menu a{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(170,120,255,.26) !important;
  background: rgba(20,12,35,.55) !important;
  color: rgba(255,255,255,.86) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  letter-spacing: .02em !important;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease !important;
  backdrop-filter: blur(10px) !important;
}
.tmc-legal-menu a:hover{
  transform: translateY(-1px) !important;
  border-color: rgba(200,150,255,.45) !important;
  box-shadow: 0 0 0 3px rgba(150,80,255,.12), 0 0 26px rgba(140,70,255,.18) !important;
  background: rgba(26,16,46,.65) !important;
}
.tmc-footer-note{
  font-size: 13px !important;
  color: rgba(255,255,255,.62) !important;
  white-space: nowrap !important;
}

/* Mobile */
@media (max-width: 820px){
  .tmc-footer-inner{
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .tmc-legal-menu{ justify-content: center !important; }
  .tmc-footer-note{ white-space: normal !important; }
}

/* === TMC FOOTER SLIM MODE === */
.tmc-footer-bottom{
  padding: 10px 0 12px !important;
  margin-top: 14px !important;
  background: linear-gradient(
    to right,
    rgba(140,70,255,.06),
    rgba(0,0,0,0),
    rgba(140,70,255,.06)
  ) !important;
}

.tmc-footer-inner{
  max-width: 1100px !important;
  padding: 0 14px !important;
  align-items: center !important;
}

.tmc-legal-menu{
  gap: 6px !important;
}

.tmc-legal-menu a{
  padding: 6px 10px !important;
  font-size: 12px !important;
  border-radius: 999px !important;
  background: rgba(20,12,35,.35) !important;
  border-color: rgba(170,120,255,.18) !important;
  box-shadow: none !important;
}

.tmc-legal-menu a:hover{
  box-shadow: 0 0 0 2px rgba(150,80,255,.12) !important;
}

.tmc-footer-note{
  font-size: 12px !important;
  opacity: .55 !important;
}

@media (max-width: 820px){/* Mobile: 
  .tmc-footer-inner{
    gap: 8px !important;
  }
}

/* === FIX LEGAL FOOTER LAYOUT === */
.tmc-legal-menu{
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
}

.tmc-legal-menu li{
  margin: 0 !important;
  padding: 0 !important;
}

.tmc-legal-menu li::marker{
  content: none !important;
}

.tmc-footer-inner{
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
}

.cs_footer_copyright{/* уби
  display: none !important;
}

/* мобильная версия */
@media (max-width: 720px){
  .tmc-footer-inner{
    flex-direction: column !important;
    gap: 6px !important;
  }
}
