/* СТИЛИ ДЛЯ ПРОФИЛЕЙ УЧАСТНИКОВ */
:root {
  --neon-blue: #00f3ff;
  --neon-pink: #ff00ff;
  --neon-purple: #9d00ff;
  --dark-bg: #0a0a14;
  --darker-bg: #050510;
  --text-glow: 0 0 10px currentColor;
  --green: #00ff00;
  --b: #00f3ff; --p: #ff00ff; --r: #00ff00; --d: #0a0a14;
  --g: rgba(0,243,255,0.1); --c: 0 0 2px currentColor, 0 0 5px currentColor; --h: 44px;
}

/* ЗАГРУЗКА ШРИФТА */
@font-face {
  font-family: 'Disket Mono';
  src: url('https://grippermania.ru/fonts/Disket-Mono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* RESET CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Disket Mono', monospace;
  background-color: var(--dark-bg);
  color: var(--neon-blue);
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Фоновая анимация */
body::before {
    content: ''; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(157,0,255,0.1) 0%, transparent 50%),
               radial-gradient(circle at 80% 20%, var(--g) 0%, transparent 50%);
    pointer-events: none; 
    z-index: -1;
}

/* Основной контент */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 5px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    min-height: calc(100vh - 140px);
}

/* Профиль участника */
.profile-section {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 10px;
}

.profile-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.white-text {
    color: #ffffff !important;
    text-shadow: 0 0 5px #ffffff !important;
}

.profile-image {
    flex: 0 0 300px;
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue);
}

.profile-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.profile-name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.profile-name {
    color: var(--neon-blue);
    font-size: 2.5rem;
    margin: 0;
}

.profile-description {
    color: var(--neon-blue);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
    width: 100%;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    align-items: center;
}

.profile-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.profile-detail-label {
    color: var(--neon-blue);
    font-weight: bold;
    opacity: 0.8;
    white-space: nowrap;
}

.profile-detail-value {
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* СТИЛИ ДЛЯ УРОВНЯ РЕПУТАЦИИ */
.rep-level-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rep-progress-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    gap: 3px;
    height: 24px;
    border: 1px solid var(--neon-blue);
    border-radius: 4px;
    padding: 2px 4px;
    background: rgba(0, 243, 255, 0.05);
}

.rep-level-bar {
    width: 7px;
    height: 3px;
    border-radius: 1px;
    background: #404060;
    transition: all 0.3s ease;
}

.rep-level-bar.green.active {
    background: linear-gradient(90deg, #00ff00, #00cc00);
    transform: scaleY(1.1);
}

.rep-level-text {
    color: var(--green);
    font-weight: normal;
    text-shadow: none !important;
}

.profile-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.social-link {
    color: var(--neon-blue);
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-link:hover {
    background: var(--neon-blue);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--neon-blue);
}

/* СТИЛИ ДЛЯ ЗВАНИЙ */
.zvan-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zvan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 20px;
    height: 16px;
    border: 1px solid;
    text-shadow: 0 0 2px rgba(0,0,0,0.8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    white-space: nowrap;
    font-family: 'Disket Mono', monospace;
}

.zvan-3 {
    background: linear-gradient(135deg, #cd7f32, #b08d57);
    color: #fff;
    border-color: #a67c52;
}

.zvan-2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
    border-color: #a0a0a0;
}

.zvan-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b6b00;
    border-color: #d4af37;
}

.zvan-m {
    background: linear-gradient(135deg, #4169e1, #6a8cff);
    color: #fff;
    border-color: #2a4b8d;
}

.zvan-sm {
    background: linear-gradient(135deg, #dc143c, #ff4766);
    color: #fff;
    border-color: #a50e2d;
}

.zvan-gm {
    background: linear-gradient(135deg, #8a2be2, #b19cff);
    color: #fff;
    border-color: #6a1cb4;
    position: relative;
    overflow: hidden;
}

.zvan-gm::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: zvanShine 3s infinite;
}

@keyframes zvanShine {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

/* Кастомные табы */
.vg-tabs {
  font-family: 'Disket Mono', monospace;
  border-bottom: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  padding: 5px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  font-size: 1.1rem;
}

.vg-tab {
  font-family: inherit;
  color: var(--neon-blue);
  background: rgba(20, 20, 40, 0.7);
  border: 1px solid transparent;
  border-radius: 6px;
  margin: 0 3px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.vg-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.vg-tab:hover::before {
  left: 100%;
}

.vg-tab:hover {
  color: #fff;
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue);
  transform: translateY(-2px);
}

.vg-tab.active {
  color: #000;
  background: var(--neon-blue);
  font-weight: 700;
  box-shadow: 0 0 15px var(--neon-blue);
}

/* СТИЛИ ДЛЯ ЛУЧШЕГО РЕЗУЛЬТАТА ВКЛАДКИ */
.tab-best-result {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background: transparent;
    border: 0px solid #87ceeb;
    border-radius: 8px;
    
}

.tab-best-result-text {
    color: var(--neon-blue);
    font-size: 1.0rem;
    font-weight: bold;
}

.tab-best-result-value {
    color: var(--green);
    font-size: 1.4rem;
    font-weight: bold;
    margin-left: 8px;
}

.tab-content {
  width: 100%;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* СТИЛИ ДЛЯ КОНТЕЙНЕРА ТАБЛИЦЫ */
.table-container {
  margin: 0 auto;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgba(10, 10, 25, 0.6);
  padding: 5px;
  width: 100%;
  max-width: 1200px;
}

/* СТИЛИ ДЛЯ ТАБЛИЦЫ */
.cyber-table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--neon-blue);
  box-shadow: 
    0 0 10px var(--neon-blue),
    inset 0 0 15px rgba(0, 243, 255, 0.1);
  background: rgba(15, 15, 30, 0.9);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  width: 100%;
  backdrop-filter: blur(5px);
}

.cyber-table th {
  background: linear-gradient(to bottom, #1a1a3a, #0f0f2a);
  color: var(--green);
  border-bottom: 2px solid var(--neon-blue);
  padding: 12px 3px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  text-align: center;
  text-shadow: 0 0 5px currentColor;
  font-size: 0.85rem;
}

.cyber-table th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  box-shadow: 0 0 8px var(--neon-blue);
}

.cyber-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
  color: var(--neon-blue);
  vertical-align: middle;
  transition: all 0.2s ease;
  font-weight: 600;
  text-align: center;
  background: rgba(10, 10, 25, 0.6);
  font-size: 0.85rem;
}

.cyber-table tr {
  transition: all 0.3s ease;
}

.cyber-table tr:hover {
  background: rgba(0, 243, 255, 0.15);
  box-shadow: 
    inset 0 0 15px rgba(0, 243, 255, 0.3),
    0 0 10px rgba(0, 243, 255, 0.2);
}

.cyber-table tr:nth-child(even) {
  background: rgba(20, 20, 40, 0.5);
}

.cyber-table tr:nth-child(even) td {
  background: rgba(20, 20, 40, 0.7);
}

/* СТИЛИ ДЛЯ БЕЛОГО ТЕКСТА */
.white-text-row td {
    color: #ffffff !important;
    
}

.white-text-row .score-link {
    color: #ffffff !important;
}

.white-text-row .score-no-link {
    color: #ffffff !important;
}

.white-text-row:hover td {
    color: #ffffff !important;
   }

/* СТИЛИ ДЛЯ СКРЫТЫХ ВКЛАДОК */
.tab-pane.hidden-tab {
    display: none !important;
}

/* СТИЛИ ДЛЯ ССЫЛОК В КОЛОНКЕ РЕЗУЛЬТАТОВ */
.score-link {
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.score-link:hover {
  text-shadow: 0 0 8px currentColor;
  transform: scale(1.05);
}

.score-link::after {
  content: '↗️';
  font-size: 0.7em;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.score-link:hover::after {
  opacity: 1;
}

.score-no-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.score-no-link::after {
  content: '↗️';
  font-size: 0.7em;
  opacity: 0.3;
}

/* Подвал */
.main-footer { 
    background: rgba(10,10,20,0.9); 
    color: var(--b); 
    text-align: center; 
    padding: 1.5rem 10px;
    margin-top: auto;
    border-top: 2px solid var(--b); 
    box-shadow: 0 0 10px var(--b); 
    position: relative; 
    z-index: 1;
    width: 100%;
}

/* Анимация появления */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Адаптация для мобильных устройств */
@media(max-width:576px){ 
  body {
    padding: 0;
  }
  
  .profile-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-items: center;
  }
  
  .profile-image {
    flex: 0 0 auto;
    max-width: 250px;
    margin: 0 auto;
  }
  
  .profile-info {
    min-width: auto;
    text-align: center;
    width: 100%;
  }
  
  .profile-name-container {
    flex-direction: column;
    gap: 8px;
  }
  
  .profile-name {
    font-size: 2rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
  
  .profile-details {
    align-items: center;
    gap: 12px;
  }
  
  .profile-detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
  }
  
  .profile-social {
    justify-content: center;
    gap: 10px;
  }
  
  .social-link {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  table{ 
    font-size:11px; 
  } 
  
  th,td{
    padding:6px 3px; 
    vertical-align: middle;
    font-size: 11px;
  } 
  
  .vg-tab{ 
    font-size:0.8rem; 
    padding:8px 12px;
    margin: 0 2px;
  }
  
  .main-content {
    padding: 15px 0px;
  }
  
  .zvan-container {
    gap: 8px;
    justify-content: flex-start;
  }
  
  .zvan-badge {
    font-size: 9px;
    padding: 1px 4px;
    min-width: 18px;
    height: 14px;
  }
  
  .rep-progress-container {
    margin-right: 3px;
    gap: 2px;
    height: 18px;
    padding: 1px 3px;
  }
  
  .rep-level-bar {
    width: 5px;
    height: 2px;
  }
  
  .tab-best-result {
    margin: 10px 0;
    padding: 8px;
  }
  
  .table-container {
    margin-bottom: 15px;
    padding: 0px;
  }
  
  .tab-best-result-text {
    font-size: 0.9rem;
  }
  
  .tab-best-result-value {
    font-size: 1.0rem;
  }
  
  .mobile-short-hand { display: table-cell; }
  .desktop-full-hand { display: none; }
  .mobile-short-reps { display: table-cell; }
  .desktop-full-reps { display: none; }
}

/* Для очень маленьких экранов (340px и меньше) */
/* Для очень маленьких экранов (340px и меньше) */
@media(max-width:340px){ 
  body {
    font-size: 12px;
  }
  
  .main-content {
    padding: 10px 3px;
  }
  
  .profile-section {
    padding: 0 5px;
  }
  
  .profile-name {
    font-size: 1.6rem;
  }
  
  .profile-description {
    font-size: 0.85rem;
  }
  
  .profile-detail-label,
  .profile-detail-value {
    font-size: 0.75rem;
  }
  
  .vg-tabs {
    margin-bottom: 8px;
  }
  
  .vg-tab {
    font-size: 0.7rem;
    padding: 6px 8px;
    margin: 0 1px;
  }
  
  .tab-best-result {
    margin: 8px 0;
    padding: 6px;
  }
  
  .tab-best-result-text {
    font-size: 0.8rem;
  }
  
  .tab-best-result-value {
    font-size: 0.9rem;
  }
  
  .table-container {
    margin-bottom: 8px;
    padding: 0px;
  }
  
  /* ВАЖНО: Переопределяем размер шрифта для таблицы */
  .cyber-table {
    font-size: 9px !important;
  }
  
  .cyber-table th,
  .cyber-table td {
    font-size: 9px !important;
    padding: 3px 1px !important;
  }
  
  /* Переопределяем для всех ячеек таблицы */
  table,
  table th,
  table td {
    font-size: 9px !important;
  }
  
  .social-link {
    padding: 4px 6px;
    font-size: 0.7rem;
  }
  
  .zvan-badge {
    font-size: 7px;
    padding: 0px 2px;
    min-width: 14px;
    height: 10px;
  }
  
  /* Сокращаем название колонки "Рука" до "Р" для ГМ150 */
  #gm150 .desktop-full-hand {
    position: relative;
  }
  
  #gm150 .desktop-full-hand::before {
    content: 'Р';
    font-size: 0.7rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--green);
    font-weight: bold;
  }
  
  #gm150 .desktop-full-hand {
    color: transparent;
    overflow: hidden;
  }
}

/* Для десктопов */
@media(min-width:577px){
  .main-content {
    padding: 20px 5px;
  }
  
  .profile-info {
    align-items: center;
    text-align: center;
  }
  
  .profile-details {
    align-items: center;
  }
  
  .profile-detail-item {
    justify-content: center;
  }
  
  .profile-name.mobile-format {
    display: none;
  }
  
  .mobile-short-hand { display: none; }
  .desktop-full-hand { display: table-cell; }
  .mobile-short-reps { display: none; }
  .desktop-full-reps { display: table-cell; }
}

/* Для больших экранов */
@media(min-width:1200px){
  .main-content {
    padding: 20px 15px;
  }
}

/* БЕЛЫЙ ТЕКСТ ДЛЯ ЧУЖИХ РЕЗУЛЬТАТОВ - ВЫСОКАЯ СПЕЦИФИЧНОСТЬ */
.profile-detail-item .profile-detail-value.white-text,
.profile-detail-value.white-text {
    color: #ffffff !important;
   
}

.tab-best-result .tab-best-result-value.white-text,
.tab-best-result-value.white-text {
    color: #ffffff !important;

}

/* Переопределяем зеленый цвет переменной CSS */
.profile-detail-value.white-text {
    --green: #ffffff !important;
}

.tab-best-result-value.white-text {
    --green: #ffffff !important;
}