.rewards-section {
  width: 85.5%;
  max-width: 1296px;
  margin: 0 auto 27px auto;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 27px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .rewards-section {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
}
.rewards-title {
  color: #fff;
  font-size: 22px;
  margin: 0 0 18px 0;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
  text-align: center;
}
.rewards-container {
  display: flex;
  gap: 27px;
  flex-wrap: wrap;
  justify-content: center;
}
.reward-period {
  flex: 1;
  min-width: 225px;
  background: rgba(0,0,0,0.3);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.1);
}
.period-title {
  color: #ffe066;
  font-size: 18px;
  margin: 0 0 14px 0;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.period-title .update-timer {
  display: inline-block;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 11px;
  padding: 5px 11px;
  font-size: 12px;
  color: #fff;
  transition: all 0.3s ease;
  margin-left: 9px;
}
.period-title .update-timer:hover {
  background: rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.3);
}
.period-title .timer-value {
  color:rgb(229, 245, 48);
  font-weight: bold;
  font-family: monospace;
}
.rewards-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.reward-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  background: rgba(0,0,0,0.2);
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.05);
}
.place {
  color: #fff;
  font-weight: bold;
  min-width: 81px;
  font-size: 13px;
}
.price-display {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
}
.price-value {
  color: #FFD700;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
  font-size: 13px;
}
.cup-small {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}
.server-issues-container {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 18px;
  margin: 0 auto 27px auto;
  width: 85.5%;
  max-width: 1296px;
}
.server-issues-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
}
.server-issues-icon {
  width: 22px;
  height: 22px;
}
.server-issues-header h3 {
  color: #fff;
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
}
.server-issues-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.server-issue-item {
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
  padding: 11px 14px;
  background: rgba(255,255,255,0.1);
  border-radius: 11px;
  border-left: 4px solid rgba(255,255,255,0.3);
}
.coin-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.section-title {
  text-align: center;
  margin: 16px 0 8px;
  font-size: 22px;
  color: #fff;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
}
.mobile-lb-toolbar {
  display: none;
}
.mobile-lb-filters-modal {
  display: none;
}
.controls-table {
  width: 85.5%;
  max-width: 1296px;
  margin: 0 auto 27px auto;
  border-collapse: separate;
  border-spacing: 0;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
  font-size: 16px;
}
.controls-cell {
  border: none;
  padding: 18px 23px;
  vertical-align: top;
}
.controls-container {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: nowrap;
  align-items: center;
}
.control-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 0 1 auto;
}
.control-separator {
  width: 1px;
  height: 27px;
  background: rgba(255,255,255,0.1);
  margin: 0 3px;
  flex-shrink: 0;
}
.control-title {
  color: #fff;
  font-size: 16px;
  margin: 0;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  white-space: nowrap;
}
.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.help-icon:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
}
.help-icon:active {
  transform: scale(0.95);
}
.tooltip-text {
  visibility: hidden;
  opacity: 0;
  background-color: rgba(0,0,0,0.9);
  color: #fff;
  text-align: center;
  border-radius: 11px;
  padding: 9px 14px;
  position: fixed;
  z-index: 10000;
  white-space: nowrap;
  font-size: 12px;
  font-weight: normal;
  text-shadow: none;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(-100%) translateY(-8px);
  left: 0;
  top: 0;
}
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0,0,0,0.9);
}
.help-icon:hover + .tooltip-text,
.help-icon.active + .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-100%) translateY(0);
}
.button-group {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
}
.control-button {
  border-radius: 11px;
  border: none;
  padding: 0px 0.5px;
  margin: 0;
  cursor: pointer;
  height: fit-content;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  min-width: 54px;
  transition: all 0.1s ease;
}
.control-button:active {
  transform: translateY(2px);
}
.control-button-inner {
  border-radius: 11px;
  -webkit-text-fill-color: white;
  -webkit-text-stroke-width: 0px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.8);
  color: white;
  white-space: nowrap;
}
.toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(30, 39, 50, 0.6);
  border: 1px solid rgba(51, 144, 236, 0.3);
  transition: .4s;
  border-radius: 20px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
input:checked + .toggle-slider {
  background-color: #3390ec;
  border-color: #3390ec;
}
input:checked + .toggle-slider:before {
  transform: translateX(20px);
}
.hide-rewards .reward-badge,
.hide-rewards .reward-container {
  display: none !important;
}
.control-button[data-type="standard"].active {
  background: #3B82F6;
  box-shadow: 0px 0.5px 0px 0.5px #2563EB, 0px 4px 0px 0.5px #2563EB;
}
.control-button[data-type="standard"].active:active {
  box-shadow: 0px 0px 0px 0.5px #2563EB, 0px 2px 0px 0.5px #2563EB;
}
.control-button[data-type="standard"].active .control-button-inner {
  box-shadow: inset 0px 0px 10px rgba(59, 130, 246, 0.5);
}
.control-button[data-type="pvp"].active {
  background: #EF4444;
  box-shadow: 0px 0.5px 0px 0.5px #DC2626, 0px 4px 0px 0.5px #DC2626;
}
.control-button[data-type="pvp"].active:active {
  box-shadow: 0px 0px 0px 0.5px #DC2626, 0px 2px 0px 0.5px #DC2626;
}
.control-button[data-type="pvp"].active .control-button-inner {
  box-shadow: inset 0px 0px 10px rgba(239, 68, 68, 0.5);
}
.control-button[data-type="solo"].active {
  background: #22C55E;
  box-shadow: 0px 0.5px 0px 0.5px #16A34A, 0px 4px 0px 0.5px #16A34A;
}
.control-button[data-type="solo"].active:active {
  box-shadow: 0px 0px 0px 0.5px #16A34A, 0px 2px 0px 0.5px #16A34A;
}
.control-button[data-type="solo"].active .control-button-inner {
  box-shadow: inset 0px 0px 10px rgba(34, 197, 94, 0.5);
}
.control-button[data-type="battleroyale"].active {
  background: #A855F7;
  box-shadow: 0px 0.5px 0px 0.5px #9333EA, 0px 4px 0px 0.5px #9333EA;
}
.control-button[data-type="battleroyale"].active:active {
  box-shadow: 0px 0px 0px 0.5px #9333EA, 0px 2px 0px 0.5px #9333EA;
}
.control-button[data-type="battleroyale"].active .control-button-inner {
  box-shadow: inset 0px 0px 10px rgba(168, 85, 247, 0.5);
}
.control-button[data-period="day"].active {
  background: #F59E0B;
  box-shadow: 0px 0.5px 0px 0.5px #D97706, 0px 4px 0px 0.5px #D97706;
}
.control-button[data-period="day"].active:active {
  box-shadow: 0px 0px 0px 0.5px #D97706, 0px 2px 0px 0.5px #D97706;
}
.control-button[data-period="day"].active .control-button-inner {
  box-shadow: inset 0px 0px 10px rgba(245, 158, 11, 0.5);
}
.control-button[data-period="week"].active {
  background: #0EA5E9;
  box-shadow: 0px 0.5px 0px 0.5px #0284C7, 0px 4px 0px 0.5px #0284C7;
}
.control-button[data-period="week"].active:active {
  box-shadow: 0px 0px 0px 0.5px #0284C7, 0px 2px 0px 0.5px #0284C7;
}
.control-button[data-period="week"].active .control-button-inner {
  box-shadow: inset 0px 0px 10px rgba(14, 165, 233, 0.5);
}
.control-button[data-period="month"].active {
  background: #6366F1;
  box-shadow: 0px 0.5px 0px 0.5px #4F46E5, 0px 4px 0px 0.5px #4F46E5;
}
.control-button[data-period="month"].active:active {
  box-shadow: 0px 0px 0px 0.5px #4F46E5, 0px 2px 0px 0.5px #4F46E5;
}
.control-button[data-period="month"].active .control-button-inner {
  box-shadow: inset 0px 0px 10px rgba(99, 102, 241, 0.5);
}
.control-button[data-oldsystem="no"].active {
  background: #5B9BD5;
  box-shadow: 0px 0.5px 0px 0.5px #4472C4, 0px 4px 0px 0.5px #4472C4;
}
.control-button[data-oldsystem="no"].active:active {
  box-shadow: 0px 0px 0px 0.5px #4472C4, 0px 2px 0px 0.5px #4472C4;
}
.control-button[data-oldsystem="no"].active .control-button-inner {
  box-shadow: inset 0px 0px 10px rgba(91, 155, 213, 0.5);
}
.control-button[data-oldsystem="yes"].active {
  background: #10B981;
  box-shadow: 0px 0.5px 0px 0.5px #059669, 0px 4px 0px 0.5px #059669;
}
.control-button[data-oldsystem="yes"].active:active {
  box-shadow: 0px 0px 0px 0.5px #059669, 0px 2px 0px 0.5px #059669;
}
.control-button[data-oldsystem="yes"].active .control-button-inner {
  box-shadow: inset 0px 0px 10px rgba(16, 185, 129, 0.5);
}
.control-button[data-base="stable"].active {
  background: #16A34A;
  box-shadow: 0px 0.5px 0px 0.5px #15803D, 0px 4px 0px 0.5px #15803D;
}
.control-button[data-base="stable"].active:active {
  box-shadow: 0px 0px 0px 0.5px #15803D, 0px 2px 0px 0.5px #15803D;
}
.control-button[data-base="stable"].active .control-button-inner {
  box-shadow: inset 0px 0px 10px rgba(22, 163, 74, 0.5);
}
.control-button[data-base="nightly"].active {
  background: #F43F5E;
  box-shadow: 0px 0.5px 0px 0.5px #E11D48, 0px 4px 0px 0.5px #E11D48;
}
.control-button[data-base="nightly"].active:active {
  box-shadow: 0px 0px 0px 0.5px #E11D48, 0px 2px 0px 0.5px #E11D48;
}
.control-button[data-base="nightly"].active .control-button-inner {
  box-shadow: inset 0px 0px 10px rgba(244, 63, 94, 0.5);
}
.control-button.inactive {
  background: rgb(100,100,100);
  box-shadow: 0px 0.5px 0px 0.5px rgba(80, 80, 80), 0px 4px 0px 0.5px rgba(80, 80, 80);
}
.control-button.inactive:active {
  box-shadow: 0px 0px 0px 0.5px rgba(80, 80, 80), 0px 2px 0px 0.5px rgba(80, 80, 80);
}
.control-button.inactive .control-button-inner {
  box-shadow: inset 0px 0px 10px rgba(120, 120, 120, 0.3);
}
.server-table {
  width: 85.5%;
  max-width: 1296px;
  margin: 0 auto 27px auto;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
  font-size: 14px;
}
@media (max-width: 768px) {
  .server-table {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
}
.server-table th {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 11px 14px;
  vertical-align: middle;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0,86,122,0.25);
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
}
.server-table td {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 9px 12px;
  vertical-align: middle;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 100%);
}
.server-table th:nth-child(1),
.server-table td:nth-child(1) {
  width: 5%;
}
.server-table th:nth-child(2),
.server-table td:nth-child(2) {
  width: 25%;
  text-align: left;
  padding-left: 14px;
}
.server-table th:nth-child(3),
.server-table td:nth-child(3) {
  width: 15%;
}
.server-table th:nth-child(4),
.server-table td:nth-child(4) {
  width: 15%;
  font-size: 12px;
}
.server-table th:nth-child(5),
.server-table td:nth-child(5) {
  width: 15%;
  font-size: 13px;
}
.server-table th:nth-child(6),
.server-table td:nth-child(6) {
  width: 25%;
  display: table-cell;
  font-size: 12px;
}
.server-table tbody tr:hover {
  background-color: rgba(0,86,122,0.2);
}
.server-table td {
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
.score-full {
  color: #aaa;
  font-size: 12px;
  font-weight: normal;
}
@media (max-width: 768px) {
  .score-full {
    display: none;
  }
}
.player-id-cell {
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.player-id-cell:hover {
  background-color: rgba(0,86,122,0.3) !important;
}
.player-id-container {
  display: flex;
  align-items: center;
  gap: 6px;
}
.copy-id-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}
.copy-id-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}
.copy-id-btn:active {
  transform: scale(0.9);
}
.copy-id-btn i {
  font-size: 10px;
}
.copy-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  z-index: 10000;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.copy-notification.visible {
  transform: translateX(-50%) translateY(0);
}
.player-nickname-cell {
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.player-nickname-cell:hover {
  background-color: rgba(0,86,122,0.3) !important;
}
.lb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid rgba(255,255,255,0.15);
}
.lb-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,0.18), rgba(255,255,255,0.07) 58%, rgba(255,255,255,0.04));
  flex-shrink: 0;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.45);
  overflow: hidden;
}
.server-table th,
.server-table td,
.server-table th:nth-child(1),
.server-table td:nth-child(1),
.server-table th:nth-child(2),
.server-table td:nth-child(2),
.server-table th:nth-child(3),
.server-table td:nth-child(3),
.server-table th:nth-child(4),
.server-table td:nth-child(4),
.server-table th:nth-child(5),
.server-table td:nth-child(5),
.server-table th:nth-child(6),
.server-table td:nth-child(6),
.server-table .player-id-container,
.server-table .score-full,
.server-table .price-value,
.server-table .onlineboard-time-value,
.server-table .onlineboard-period-capacity,
.server-table .serverboard-date-cell,
.server-table .onlineboard-date-cell {
  font-size: 13px !important;
}
.server-table .player-id-container,
.server-table .score-full {
  font-size: 12px !important;
}

@media (max-width: 768px) {
  .server-table th,
  .server-table td,
  .server-table th:nth-child(1),
  .server-table td:nth-child(1),
  .server-table th:nth-child(2),
  .server-table td:nth-child(2),
  .server-table th:nth-child(3),
  .server-table td:nth-child(3),
  .server-table th:nth-child(4),
  .server-table td:nth-child(4),
  .server-table th:nth-child(5),
  .server-table td:nth-child(5),
  .server-table th:nth-child(6),
  .server-table td:nth-child(6),
  .server-table .player-id-container,
  .server-table .score-full,
  .server-table .price-value,
  .server-table .onlineboard-time-value,
  .server-table .onlineboard-period-capacity,
  .server-table .serverboard-date-cell,
  .server-table .onlineboard-date-cell {
    font-size: 13px !important;
  }
  .server-table .player-id-container,
  .server-table .score-full {
    font-size: 12px !important;
  }
}
.lb-avatar-placeholder::before {
  content: "\f007";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
}
.lb-avatar-placeholder:not(.lb-avatar-fallback)::before {
  opacity: 0.55;
}
.lb-online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #00e676;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 2px;
  box-shadow: 0 0 4px #00e676;
}
.nickname-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 0;
  white-space: normal;
  overflow: visible;
}
.lb-player-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  flex: 0 1 auto;
  margin-left: 3px;
  min-width: 0;
  max-width: 100%;
}
.lb-player-badge {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45));
}
.reward-container {
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
}
@media (max-width: 768px) {
  .lb-avatar,
  .lb-avatar-placeholder {
    width: 22px;
    height: 22px;
    margin-right: 4px;
  }
  .nickname-wrapper {
    gap: 2px;
  }
  .reward-container {
    display: block;
    margin-top: 4px;
    margin-left: 0;
  }
}
.reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
  color: #FFD700;
  font-weight: bold;
  white-space: nowrap;
  line-height: 1;
}
.reward-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.reward-cup-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.leaderboard-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
  gap: 16px;
  margin: 20px auto;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}
.leaderboard-empty .empty-icon {
  width: 64px;
  height: 64px;
  opacity: 0.5;
  color: #fff;
  margin-bottom: 8px;
}
.leaderboard-empty .empty-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.leaderboard-empty .empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}
.leaderboard-hint {
  width: 85.5%;
  max-width: 1296px;
  margin: 0 auto 27px auto;
  text-align: center;
  color: #ccc;
  font-size: 14px;
  font-style: italic;
  padding: 14px 18px;
  background: rgba(0,0,0,0.2);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
}
.leaderboard-user-summary {
  width: 85.5%;
  max-width: 1296px;
  margin: 0 auto 27px auto;
  padding: 16px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  text-shadow: 1px 1px rgba(0,0,0,0.3);
  box-sizing: border-box;
}
.summary-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.summary-title {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.summary-item {
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.summary-label {
  font-size: 12px;
  color: #aaa;
}
.summary-value {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}
@media (max-width: 768px) {
  .mobile-lb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(51, 144, 236, 0.2);
  }
  .mobile-lb-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(51, 144, 236, 0.35);
    background: rgba(51, 144, 236, 0.16);
    color: #e4e4e4;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }
  .mobile-lb-toolbar-summary {
    min-width: 0;
    color: #9fc8ef;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-lb-filters-modal.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10020;
  }
  .mobile-lb-filters-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
  }
  .mobile-lb-filters-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1c2430;
    border-top: 1px solid rgba(51, 144, 236, 0.35);
    border-radius: 14px 14px 0 0;
    padding: 12px 14px 16px;
  }
  .mobile-lb-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .mobile-lb-filters-title {
    color: #e7edf6;
    font-size: 15px;
    font-weight: 700;
  }
  .mobile-lb-filters-x {
    border: none;
    background: transparent;
    color: #9fc8ef;
    font-size: 24px;
    line-height: 1;
    padding: 0 2px;
  }
  .mobile-lb-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
  }
  .mobile-lb-field label {
    color: #9fc8ef;
    font-size: 12px;
  }
  .mobile-lb-field select {
    width: 100%;
    border: 1px solid rgba(51, 144, 236, 0.35);
    border-radius: 8px;
    background: rgba(13, 19, 27, 0.75);
    color: #e4e4e4;
    padding: 8px 10px;
    font-size: 14px;
  }
  .mobile-lb-apply {
    width: 100%;
    border: 1px solid rgba(51, 144, 236, 0.45);
    border-radius: 9px;
    background: #2b79c6;
    color: #fff;
    font-weight: 700;
    padding: 10px 12px;
    margin-top: 6px;
  }
  body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
  }
  html {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
  }
  button {
    box-shadow: none !important;
  }
  button:active {
    transform: none !important;
    opacity: 1 !important;
  }
  .controls-table {
    display: none;
  }
  .controls-cell {
    padding: 12px 16px;
    border: none;
    background: transparent;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .controls-container {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .control-section {
    min-width: auto;
    width: 100%;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(51, 144, 236, 0.15);
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .control-section:last-child {
    border-bottom: none;
  }
  .rewards-control {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .rewards-control .control-title {
    width: auto !important;
    margin-bottom: 0 !important;
    justify-content: flex-start !important;
  }
  .rewards-control .toggle-wrapper {
    width: auto;
  }
  .control-separator {
    display: none;
  }
  .control-title {
    font-size: 14px;
    color: #3390ec;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
  }
  .button-group {
    width: 100%;
    justify-content: stretch;
    gap: 8px;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .control-button {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(51, 144, 236, 0.3);
    background: rgba(30, 39, 50, 0.6);
    border-radius: 8px;
    box-shadow: none !important;
    box-sizing: border-box;
    max-width: 100%;
  }
  .control-button.active.purple,
  .control-button.active.teal {
    background: rgba(51, 144, 236, 0.15);
    border-color: rgba(51, 144, 236, 0.4);
    box-shadow: none !important;
  }
  .control-button.active.purple .control-button-inner,
  .control-button.active.teal .control-button-inner {
    color: #3390ec;
    box-shadow: none !important;
  }
  .control-button.inactive {
    background: rgba(30, 39, 50, 0.6);
    border-color: rgba(51, 144, 236, 0.2);
    box-shadow: none !important;
  }
  .control-button.inactive .control-button-inner {
    color: #8e9297;
    box-shadow: none !important;
  }
  .control-button:active {
    transform: none !important;
  }
  .control-button-inner {
    font-size: 13px;
    padding: 10px 12px;
    color: #e4e4e4;
    text-shadow: none;
    -webkit-text-fill-color: inherit;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
  }
  .server-table {
    width: 100%;
    margin: 0;
    font-size: 12px;
    display: table;
    border-collapse: collapse;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  .server-table th {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(51, 144, 236, 0.15);
    color: #3390ec;
    font-weight: 500;
    padding: 12px 8px;
    font-size: 13px;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-overflow: clip;
    overflow: visible;
  }
  .server-table td {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(51, 144, 236, 0.15);
    color: #e4e4e4;
    padding: 12px 8px;
    font-size: 13px;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-overflow: clip;
    overflow: visible;
  }
  .server-table tr:last-child td {
    border-bottom: none;
  }
  .server-table th:nth-child(1),
  .server-table td:nth-child(1) {
    width: 8%;
    text-align: left;
    padding-left: 16px;
  }
  .server-table th:nth-child(2),
  .server-table td:nth-child(2) {
    width: 62%;
    text-align: left;
    padding-left: 8px;
  }
  .server-table th:nth-child(3),
  .server-table td:nth-child(3) {
    width: 30%;
    font-size: 12px;
  }
  .server-table th:nth-child(4),
  .server-table td:nth-child(4) {
    display: none;
  }
  .server-table th:nth-child(5),
  .server-table td:nth-child(5) {
    display: none;
  }
  .server-table th:nth-child(6),
  .server-table td:nth-child(6) {
    display: none;
  }
  .server-table tbody tr:hover {
    background-color: rgba(51, 144, 236, 0.05);
  }
  .leaderboard-empty {
    padding: 40px 20px;
    color: #8e9297;
  }
  .leaderboard-hint {
    width: 100%;
    max-width: 100%;
    margin: 0 0 15px 0;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #8e9297;
    font-size: 12px;
    box-sizing: border-box;
    overflow-x: hidden;
    text-align: center;
  }
  .leaderboard-user-summary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 15px 0 !important;
    padding: 12px 16px !important;
    border-radius: 0;
    border: none;
    background: transparent;
    box-sizing: border-box;
  }
  .summary-header {
    margin-bottom: 10px;
  }
  .summary-title {
    font-size: 16px;
    color: #e4e4e4;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .summary-item {
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    padding: 9px 10px;
  }
  .summary-label {
    color: #b9b9b9;
  }
  .summary-value {
    font-size: 14px;
  }
  .rewards-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 15px 0 !important;
    padding: 12px 16px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    box-sizing: border-box;
  }
  .rewards-title {
    font-size: 16px;
    margin-bottom: 12px;
    color: #3390ec;
    text-align: center;
  }
  .rewards-container {
    flex-direction: column !important;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  .reward-period {
    min-width: auto !important;
    width: 100% !important;
    padding: 12px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(51, 144, 236, 0.15);
    border-radius: 0;
    box-sizing: border-box;
  }
  .reward-period:last-child {
    border-bottom: none;
  }
  .period-title {
    font-size: 14px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    color: #3390ec;
    border-bottom: 1px solid rgba(51, 144, 236, 0.2);
    padding-bottom: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .period-title .update-timer {
    margin-left: 0;
    font-size: 11px;
    padding: 4px 8px;
    white-space: nowrap;
    background: rgba(30, 39, 50, 0.6);
    border: 1px solid rgba(51, 144, 236, 0.3);
    border-radius: 4px;
    color: #e4e4e4;
  }
  .period-title .timer-value {
    color: #3390ec;
  }
  .rewards-list {
    width: 100%;
    gap: 8px;
    box-sizing: border-box;
  }
  .reward-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
  }
  .place {
    min-width: 0;
    width: 100%;
    font-size: 13px;
    color: #3390ec;
    flex-shrink: 0;
  }
  .price-display {
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
  }
  .price-value {
    font-size: 13px;
    color: #FFD700;
  }
  .reward-badge,
  .nickname-wrapper,
  .player-id-container {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .nickname-wrapper,
  .player-id-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
  }
  .coin-icon {
    width: 18px;
    height: 18px;
  }
  .cup-small {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  .help-icon {
    width: 20px;
    height: 20px;
    font-size: 12px;
    background: rgba(51, 144, 236, 0.2);
    border: 1px solid rgba(51, 144, 236, 0.3);
    color: #3390ec;
    position: relative;
    flex-shrink: 0;
    margin-left: 4px;
  }
  .help-icon:active {
    transform: scale(0.95);
  }
  .tooltip-text {
    font-size: 12px;
    padding: 10px 14px;
    max-width: calc(100vw - 32px);
    white-space: normal;
    word-wrap: break-word;
    background-color: rgba(30, 39, 50, 0.95) !important;
    border: 1px solid rgba(51, 144, 236, 0.3);
    color: #e4e4e4 !important;
    border-radius: 8px;
    text-align: center;
    left: 50% !important;
    transform: translateX(-50%) translateY(-100%) translateY(-8px) !important;
    top: auto !important;
  }
  .tooltip-text::after {
    border-top-color: rgba(30, 39, 50, 0.95) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .help-icon:hover + .tooltip-text,
  .help-icon.active + .tooltip-text {
    transform: translateX(-50%) translateY(-100%) translateY(0) !important;
  }
}
