html,
body {
  height: 100%;
  font-family: var(--font-main);
  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(255, 85, 0, 0.15) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 90% 85%,
      rgba(255, 85, 0, 0.12) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, #0a0a0a, #141414 40%, #1f140a, #0a0a0a);
  background-attachment: fixed;
  color: var(--text-color);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}
h1,
h2,
h3,
button,
input[type="text"],
.sidebar-item span,
.map-name,
.win-rate-badge,
.map-stat-item .stat-value,
.stat-box,
.metric-value,
.metric-label,
.drawer-title,
#custom-error-banner {
  font-family: var(--font-accent);
}
button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #ff55001a;
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: var(--border-radius);
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px #0000001a;
}
button:hover {
  background: #f503;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #ff55004d;
  color: #fff;
}
button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px #f503;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: radial-gradient(100% 100% at 50% 0%, #ff550014, #0f0f0fd9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transform: translate(-100%);
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.3s ease,
    visibility 0.3s ease;
  border-right: 1px solid rgba(255, 85, 0, 0.2);
  box-shadow: 4px 0 25px #00000080;
  opacity: 0;
  visibility: hidden;
}
.sidebar.active {
  transform: translate(0);
  opacity: 1;
  visibility: visible;
}
.sidebar.player-profile-active {
  transform: translate(0);
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(10px);
}
.sidebar.player-profile-active.slide-in {
  animation: sidebarSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes sidebarSlideIn {
  0% {
    transform: translate(-100%);
    opacity: 0;
  }
  to {
    transform: translate(0);
    opacity: 1;
  }
}
@keyframes sidebarPulse {
  0%,
  to {
    box-shadow:
      4px 0 20px #0000004d,
      0 0 15px #f503;
  }
  50% {
    box-shadow:
      4px 0 20px #0000004d,
      0 0 30px #f509;
  }
}
.sidebar.hidden {
  transform: translate(-100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease,
    visibility 0.2s ease;
}
.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding-top: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 85, 0, 0.5) transparent;
}
.sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.8rem;
  margin: 0.25rem 0.6rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffffd1;
  text-decoration: none;
  border: 1px solid transparent;
  position: relative;
}
.sidebar-item:hover {
  background: #ff550014;
  color: #fff;
  border-color: #ff550040;
  box-shadow: 0 4px 15px #ff55001f;
}
.sidebar-item.active {
  background: linear-gradient(135deg, #f503, #ff55000d);
  color: var(--primary-color);
  border-color: #f506;
  box-shadow:
    inset 3px 0 0 var(--primary-color),
    0 0 15px #f503;
}
.sidebar-item i {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}
.sidebar-item:hover i {
  transform: translateY(-2px) scale(1.1);
  color: var(--primary-color);
}
.sidebar-item span {
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #00000080;
  z-index: 999;
  backdrop-filter: blur(3px);
}
.mobile-overlay.active {
  display: block;
  animation: overlayFadeIn 0.3s ease;
}
@keyframes overlayFadeIn {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
body.sidebar-open {
  margin-left: var(--sidebar-width);
}
header {
  color: #fff;
  padding: 1.1rem 2rem;
  text-align: center;
  box-shadow: 0 2px 10px #00000080;
  position: relative;
  z-index: 10;
}
main {
  flex: 1;
  padding: 1.5rem 1rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: margin-left 0.3s ease;
}
body.sidebar-open main {
  margin-left: var(--sidebar-width);
}
section {
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 85, 0, 0.1);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1350px;
  box-shadow: 4px 0 25px #00000080;
}
h2 {
  margin-top: 0;
  color: var(--primary-color);
  text-shadow: 0 0 5px rgba(255, 85, 0, 0.3);
  font-size: 1.8rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
body.profile-active #search {
  display: none !important;
}
body.profile-active header {
  display: none !important;
}
body.profile-active footer {
  display: none !important;
}
input[type="text"] {
  flex: 1;
  min-width: 300px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--border-radius);
  background: #0a0a0aa6 !important;
  color: #fff !important;
  border: 1px solid rgba(255, 85, 0, 0.25) !important;
  box-shadow: inset 0 2px 4px #00000080;
  transition: all 0.3s ease;
}
input[type="text"]::placeholder {
  color: #ffffff73;
}
input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-color) !important;
  box-shadow:
    0 0 0 2px #ff550040,
    0 0 15px #ff55004d !important;
  background: #0f0f0fd9 !important;
}
#output {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-darker);
  color: var(--primary-color);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 85, 0, 0.3);
  box-shadow: 0 0 10px #ff55001a;
  text-align: center;
  font-weight: 700;
}
.player-card {
  grid-column: 1 / -1;
  background:
    radial-gradient(100% 100% at 50% 0%, #ff55000d, #12121299), #141414;
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px #0006;
  border: 2px solid rgba(255, 85, 0, 0.25);
  width: 100%;
  min-height: 600px;
}
.player-header {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 1.2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--bg-darker), rgba(255, 85, 0, 0.15));
  border-radius: 15px;
  border: 2px solid rgba(255, 85, 0, 0.3);
  box-shadow: 0 4px 15px #ff55001a;
}
.player-avatar {
  flex-shrink: 0;
}
.player-avatar img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 20px #f509;
  object-fit: cover;
}
.player-info {
  flex: 1;
  min-width: 0;
}
.player-elo {
  font-size: 19px;
  font-weight: 700;
}
.elo-progress {
  width: 100%;
  max-width: 260px;
  margin: 0.1rem 0 0.7rem;
}
.elo-progress-bar {
  height: 6px;
  background: #ffffff1a;
  border-radius: 3px;
  overflow: hidden;
}
.elo-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-glow));
  box-shadow: 0 0 8px #f509;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.elo-progress-text {
  display: block;
  margin-top: 0.3rem;
  font-family: Orbitron, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #a0a0a0;
}
.player-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.9rem;
  margin-left: auto;
  flex-shrink: 0;
}
.highlight-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.8rem;
  background: #0000004d;
  border: 1px solid rgba(255, 85, 0, 0.25);
  border-radius: 12px;
}
.highlight-tile i {
  color: var(--primary-color);
  font-size: 1rem;
}
.highlight-value {
  font-family: Orbitron, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--value-color, #fff);
}
.highlight-label {
  font-family: Orbitron, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a0a0a0;
}
.player-info h2 {
  margin-bottom: 0.6rem;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(255, 85, 0, 0.4);
}
.player-info p {
  color: #ffffffe6;
  font-weight: 500;
  font-family: Orbitron, sans-serif;
  letter-spacing: 0.7px;
}
.player-info a {
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  background: #ff55001a;
  border: 2px solid rgba(255, 85, 0, 0.3);
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 0.5rem;
  border-radius: 10px;
}
.player-info a:hover {
  background: #f503;
  transform: translateY(-1px);
}
.player-info .faceit-link {
  display: block;
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
}
.player-info .faceit-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stats-box:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-glow));
  border-radius: 15px 15px 0 0;
}
.stats-box:hover {
  transform: translateY(-5px);
  box-shadow:
    0 10px 25px #0006,
    0 0 20px #ff55004d;
  border-color: var(--primary-color);
}
.stats-box h3 {
  margin: 0 0 1.5rem;
  color: var(--primary-color);
  font-size: 1.2rem;
  text-align: center;
  border-bottom: 2px solid rgba(255, 85, 0, 0.4);
  padding-bottom: 1rem;
  text-shadow: 0 0 5px rgba(255, 85, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stats-box p strong {
  color: var(--primary-color);
  font-size: 1.1em;
  text-shadow: 0 0 3px rgba(255, 85, 0, 0.3);
}
footer {
  color: #ffffffb3;
  box-shadow: 0 2px 10px #000;
  text-align: center;
  padding: 1rem 0rem;
  font-size: 0.9rem;
  width: 100%;
}
.footer-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}
.footer-buttons {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-btn {
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 6px #0003;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.support-btn,
.contact-btn {
  position: relative;
  width: 205px;
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 6px #0003;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.support-btn i,
.contact-btn i {
  font-size: 1rem;
}
.contact-btn {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-hover)
  );
}
.contact-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-hover), #cc4400);
  box-shadow:
    0 14px 30px #0000008c,
    0 0 22px #ff550073;
}
.support-btn:before,
.contact-btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}
.support-btn:hover:before,
.contact-btn:hover:before {
  left: 100%;
}
.footer-btn i {
  font-size: 1rem;
}
.modal-content {
  background: linear-gradient(135deg, var(--bg-darker), var(--bg-card));
  margin: 5% auto;
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 630px;
  position: relative;
  box-shadow: 0 20px 40px #00000080;
  border: 2px solid rgba(255, 85, 0, 0.2);
  animation: modalSlideIn 0.3s ease-out;
  height: auto;
  align-self: center;
  font-family: Orbitron, sans-serif;
}
@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.close {
  color: #fff;
  float: right;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  line-height: 1;
  position: absolute;
  right: 1rem;
  top: 1rem;
}
.close:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}
.modal-content h2 {
  color: var(--primary-color);
  margin: 0 0 1rem;
  font-family: Orbitron, sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-content p {
  color: #ffffffe6;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  letter-spacing: 0.4px;
}
.support-options {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}
.support-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  background: #ff55001a;
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: var(--border-radius);
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 700;
  font-size: 1.1rem;
}
.steam-support {
  background: linear-gradient(135deg, #1b2838, #2a475e);
  border: 1px solid #66c0f4;
  color: #66c0f4;
  text-wrap: nowrap;
}
.steam-support:hover {
  background: linear-gradient(135deg, #2a475e, #1b2838);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px #66c0f44d;
  color: #fff;
}
.steam-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #1b28384d;
  border-radius: var(--border-radius);
  border: 1px solid rgba(102, 192, 244, 0.2);
}
.steam-info p {
  color: #ffffffe6;
  margin-bottom: 1rem;
}
.steam-info strong {
  color: #66c0f4;
}
.steam-info ol {
  color: #fffc;
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.steam-info li {
  margin: 0.5rem 0;
}
.steam-info small {
  color: #fff9;
  font-style: italic;
}
.contact-form {
  margin-top: 1rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(255, 85, 0, 0.25);
  border-radius: var(--border-radius);
  background: #0a0a0aa6;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow:
    0 0 0 2px #ff550040,
    0 0 15px #ff55004d;
  background: #0f0f0fd9;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #ffffff80;
}
.contact-form select {
  cursor: pointer;
}
.contact-form select option {
  background: var(--bg-darker);
  color: #fff;
  padding: 0.5rem;
}
.submit-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-hover)
  );
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
  box-shadow: 0 4px 8px #0003;
}
.submit-btn:hover {
  background: linear-gradient(135deg, var(--primary-hover), #cc4400);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px #f506;
  color: #fff;
}
.reaction-btn {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border: none;
  color: #fff;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px #ff6b354d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem auto;
}
.reaction-btn:hover {
  background: linear-gradient(135deg, #f7931e, #ff6b35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #ff6b3566;
}
.reaction-screen {
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  cursor: pointer;
  transition: none;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: none;
}
.reaction-screen.waiting {
  background: #f44;
  color: #fff;
  text-shadow: none;
}
.reaction-screen.ready {
  background: #4caf50;
  color: #fff;
  text-shadow: none;
  animation: none;
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 1rem;
}
@keyframes spin {
  0% {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
.reaction-result {
  text-align: center;
  padding: 2rem;
}
.reaction-result h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.reaction-time {
  font-size: 3rem;
  font-weight: 700;
  color: #4caf50;
  margin: 1rem 0;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}
.reaction-rating {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: 700;
}
.reaction-error {
  text-align: center;
  padding: 2rem;
}
.reaction-error h3 {
  color: #f44336;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.reaction-error p {
  color: #fffc;
  margin-bottom: 2rem;
}
#results {
  min-height: auto !important;
  height: auto !important;
}
@media (max-width: 768px) {
  body {
    height: auto !important;
  }
  main {
    max-width: 100% !important;
    padding: 1.3rem 0.3rem 0rem;
  }
  footer {
    margin-top: auto !important;
  }
  .footer-content p {
    font-size: 12px;
    padding-bottom: 7px;
  }
  #results {
    padding: 0.8rem !important;
    margin-bottom: 1rem !important;
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    contain: layout !important;
  }
  a.faceit-link {
    justify-content: center;
  }
  #results .stats-container,
  #results .maps-grid,
  #results .match-history,
  #results #playerStats,
  #results .player-card {
    min-height: auto !important;
    height: auto !important;
    display: block !important;
  }
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }
  .mobile-menu-toggle.profile-active {
    opacity: 1;
    visibility: visible;
  }
  .sidebar {
    transform: translate(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.mobile-active {
    transform: translate(0);
  }
  .sidebar.player-profile-active:not(.mobile-active) {
    transform: translate(-100%);
  }
  .sidebar.player-profile-active {
    backdrop-filter: none;
  }
  body.sidebar-open {
    margin-left: 0;
  }
  body.sidebar-open header,
  body.sidebar-open main,
  body.sidebar-open footer {
    margin-left: 0;
  }
  .player-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem !important;
    padding: 1.3rem;
    margin-bottom: 1.2rem;
  }
  .player-highlights {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
  .metrics-card-header .how-to-improve,
  .player-info a.faceit-link {
    margin: 0 auto;
  }
  .elo-progress {
    margin: 0.1rem auto 0.7rem;
  }
  .player-avatar img {
    width: 120px;
    height: 120px;
  }
  .player-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .player-info p {
    font-size: 1rem;
    margin: 0.4rem 0;
  }
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  .stats-box h3 {
    font-size: 1.13rem;
    margin-bottom: 1rem;
  }
  .mobile-overlay {
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
  }
  .mobile-overlay.active {
    display: block;
    animation: overlayFadeIn 0.3s ease;
  }
  body.profile-active #search {
    display: none !important;
  }
  body.profile-active #results {
    display: block !important;
  }
  .pro-grid {
    display: grid !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  body.profile-active .pro-grid {
    display: none !important;
  }
  body.profile-active header {
    display: none !important;
  }
  body.profile-active footer {
    display: none !important;
  }
}
.header-content {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 2rem;
  max-width: none;
  position: relative;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 10px var(--accent-glow);
  letter-spacing: 2px;
  color: #fff;
  position: relative;
  display: inline-block;
  text-wrap: nowrap;
}
@media (min-width: 769px) and (max-width: 1024px) {
  main {
    max-width: 1200px;
    padding: 2rem 1rem;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }
  .player-header {
    gap: 2rem;
    padding: 2rem;
  }
  .player-avatar img {
    width: 130px;
    height: 130px;
  }
  .player-info h2 {
    font-size: 2.2rem;
  }
  .maps-grid {
    grid-template-columns: repeat(2, 300px);
  }
}
.sidebar-content::-webkit-scrollbar {
  width: 4px;
}
.sidebar-content::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-content::-webkit-scrollbar-thumb {
  background: #ff550080;
  border-radius: 2px;
}
.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: #f50c;
}
@media (max-width: 768px) {
  h2 i {
    margin-right: 0.3rem;
  }
  .search-container {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .reaction-screen {
    height: 250px;
    font-size: 1.2rem;
  }
  .reaction-time {
    font-size: 2.5rem;
  }
  .match-content-container {
    padding: 0;
    gap: 0;
  }
  .match-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
  }
  .player-stats {
    max-width: 100%;
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 0.4rem !important;
    width: 100% !important;
    border-top: 1px solid rgba(255, 85, 0, 0.2) !important;
    padding-top: 0.8rem !important;
    margin-top: 0.2rem !important;
    justify-items: center;
  }
}
.match-history {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  width: 100%;
}
@media (min-width: 769px) {
  .mobile-sidebar-drawer {
    display: none !important;
  }
}
.drawer-header {
  height: 60px;
  background: #ff55001a;
  border-bottom: 1px solid rgba(255, 85, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  cursor: pointer;
  position: relative;
  font-family: Orbitron, sans-serif;
}
.drawer-handle {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translate(-50%);
  width: 40px;
  height: 4px;
  background: #f509;
  border-radius: 2px;
}
.drawer-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.drawer-content {
  max-height: calc(50vh - 60px);
  overflow-y: auto;
  padding: 0.45rem 0;
  background: var(--bg-darker);
  font-family: Orbitron, sans-serif;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: #ffffffb3;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.drawer-item:hover {
  background: #ff55001a;
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}
.drawer-item.active {
  background: #ff550026;
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}
.drawer-item i {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}
.drawer-item span {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 0.85rem;
}
.back-button {
  border-bottom: 1px solid rgba(255, 85, 0, 0.2);
}
.map-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 3;
  background: linear-gradient(90deg, #f50, #ff7b00);
  border-radius: 15px 15px 0 0;
}
.mobile-sidebar-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  border-top: 2px solid rgba(255, 85, 0, 0.2);
  box-shadow: 0 -4px 20px #0000004d;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  visibility: hidden;
  display: none;
}
.mobile-sidebar-drawer.visible {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(calc(100% - 60px));
}
.mobile-sidebar-drawer.expanded {
  transform: translateY(0);
}
.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
  width: 100%;
  padding: 0;
}
.map-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  min-height: 290px;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--bg-darker);
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 2px solid rgba(255, 85, 0, 0.2);
  box-shadow: 0 8px 24px #0006;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease;
}
.map-card.has-map-bg {
  background-image:
    linear-gradient(135deg, #1a1a1a40, #ff550014), var(--map-bg-url);
}
.map-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0f0f0f8c, #0a0a0ad9 60%, #0a0a0af2);
  z-index: 1;
  transition: opacity 0.3s ease;
}
.map-card.has-map-bg:after {
  opacity: 1;
}
.map-card > * {
  position: relative;
  z-index: 2;
}
.map-card.good-performance:before {
  background: linear-gradient(90deg, #4caf50, #81c784);
}
.map-card.good-performance {
  border-color: #4caf504d;
}
.map-card.good-performance:hover {
  border-color: #4caf50;
  box-shadow:
    0 12px 30px #00000080,
    0 0 20px #4caf5040;
}
.map-card.average-performance:before {
  background: linear-gradient(90deg, #ff9800, #ffb74d);
}
.map-card.average-performance {
  border-color: #ff98004d;
}
.map-card.average-performance:hover {
  border-color: #ff9800;
  box-shadow:
    0 12px 30px #00000080,
    0 0 20px #ff980040;
}
.map-card.poor-performance:before {
  background: linear-gradient(90deg, #f44336, #e57373);
}
.map-card.poor-performance {
  border-color: #f443364d;
}
.map-card.poor-performance:hover {
  border-color: #f44336;
  box-shadow:
    0 12px 30px #00000080,
    0 0 20px #f4433640;
}
.map-card:hover {
  transform: translateY(-6px);
}
.map-card-header {
  padding: 1.1rem 1.25rem 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
}
.map-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
}
.win-rate-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px #0006;
}
.map-card.good-performance .win-rate-badge {
  background: #4caf50d9;
  border: 1px solid rgba(129, 199, 132, 0.5);
}
.map-card.average-performance .win-rate-badge {
  background: #ff9800d9;
  border: 1px solid rgba(255, 183, 77, 0.5);
}
.map-card.poor-performance .win-rate-badge {
  background: #f44336d9;
  border: 1px solid rgba(229, 115, 115, 0.5);
}
.map-card-body {
  padding: 0.8rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.map-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  width: 100%;
}
.map-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  width: 100%;
  min-width: 0;
  min-height: 96px;
  padding: 0.65rem 0.4rem;
  box-sizing: border-box;
  background: #0000004d;
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.map-stat-item i,
.map-stat-item svg {
  display: block;
  flex-shrink: 0;
  margin: 0;
  height: 1.2rem;
  font-size: 1.2rem;
  line-height: 1.2rem;
  color: var(--primary-color);
}
.map-stat-item .stat-label,
.map-stat-item .stat-value {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-stat-item .stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  font-family: Orbitron, sans-serif;
}
.map-stat-item .stat-value {
  font-family: Orbitron, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.map-stat-item:hover {
  background: #f503;
  border-color: #f506;
  transform: translateY(-1px);
}
#cookieModal {
  display: none;
}
.cookie-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}
.cookie-btn {
  flex: 1;
  padding: 0.9rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 85, 0, 0.25);
}
.cookie-btn.primary {
  color: var(--primary-color);
  border-color: #ff550059;
}
.cookie-btn.primary:hover {
  box-shadow: 0 6px 15px #ff550059;
}
.cookie-btn.secondary {
  background: #ffffff0f;
  color: #ffffffe6;
  border-color: #ffffff2e;
}
.cookie-btn.secondary:hover {
  background: #ff550014;
  border-color: #ff550059;
  color: #fff;
}
.cookie-fab {
  position: fixed;
  right: 30px;
  bottom: 5%;
  width: 55px;
  height: 55px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  background: #ff550024;
  border: 1px solid rgba(255, 85, 0, 0.32);
  color: var(--primary-color);
  box-shadow:
    0 10px 24px #00000073,
    0 0 14px #ff55002e;
  backdrop-filter: blur(8px);
  cursor: pointer;
  padding: 0;
}
.cookie-fab i {
  font-size: 1.25rem;
}
.cookie-fab:hover {
  background: #ff550038;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  color: #fff;
  box-shadow:
    0 14px 30px #0000008c,
    0 0 22px #ff550059;
}
.cookie-fab:active {
  transform: translateY(0);
}
.cookie-fab:focus {
  outline: none;
}
.cookie-fab:focus-visible {
  box-shadow:
    0 0 0 3px #ff550059,
    0 14px 30px #0000008c,
    0 0 22px #ff550059;
}
@media (max-width: 768px) {
  main {
    height: auto !important;
    min-height: auto !important;
    flex: none !important;
    width: 100%;
    max-width: none;
    display: block !important;
    flex-direction: column;
    align-items: center;
    padding: 1.3rem 0.3rem 0rem;
  }
  section {
    text-align: center;
    margin: 0 auto 1rem;
    width: calc(100% - 1rem);
    max-width: 350px;
    padding: 1rem;
  }
  h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    justify-content: center;
  }
  .search-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }
  input[type="text"] {
    min-width: auto;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .player-info {
    text-align: center;
  }
  #output {
    text-align: center;
    margin: 0 auto 1.5rem;
    width: 100%;
  }
  .map-card {
    min-height: 260px;
    margin-bottom: 0.5rem;
  }
  .map-stat-row {
    gap: 0.3rem;
  }
  .map-stat-item {
    min-height: 84px;
    padding: 0.5rem 0.3rem;
    font-size: 0.75rem;
  }
  .maps-table {
    font-size: 0.8rem;
  }
  .maps-table th,
  .maps-table td {
    padding: 0.5rem;
  }
}
@media (max-width: 480px) {
  .search-container {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
  }
  input[type="text"],
  button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  h2 {
    font-size: 1.4rem;
    text-align: center;
    justify-content: center;
  }
  .player-avatar img {
    width: 80px;
    height: 80px;
  }
  .player-info h2 {
    font-size: 1.5rem;
  }
  .player-card {
    max-width: 350px;
    padding: 1rem;
    margin: 0 auto 1rem;
    width: 100%;
  }
  .stats-container {
    justify-items: center;
  }
  .cookie-fab {
    right: 12px;
    bottom: 12px;
    width: 50px;
    height: 50px;
  }
  .footer-buttons {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.6rem !important;
    width: 100% !important;
  }
  .footer-btn,
  .support-btn,
  .contact-btn {
    width: auto;
    min-width: 0;
    font-size: 0.72rem;
    padding: 0.75rem 1.8rem;
    letter-spacing: 0.5px;
    gap: 0.35rem;
    white-space: nowrap;
  }
  .footer-btn i {
    font-size: 0.85rem;
  }
}
.player-stats {
  align-items: center;
  width: auto;
  display: flex;
  order: 5;
  gap: 0.7rem;
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  #search h2,
  #results h2 {
    font-size: 1.25rem;
  }
  .cookie-actions {
    flex-direction: column;
  }
  .modal-content {
    height: auto;
    align-self: flex-start;
  }
}
h1:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  pointer-events: none;
}
@media (min-width: 1025px) {
  #results {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: radial-gradient(100% 100% at 50% 0%, #ff550014, #0f0f0fd9);
    border: 2px solid rgba(255, 85, 0, 0.3);
    max-width: 1350px;
  }
  .player-card {
    padding: 1.6rem;
    margin-bottom: 1rem;
    min-height: 0;
  }
  .player-avatar img {
    width: 115px;
    height: 115px;
  }
  .player-info p {
    font-size: 1.1rem;
    margin: 0.35rem 0;
    line-height: 1.35;
  }
  .stats-box h3 {
    margin-bottom: 0.9rem;
    padding-bottom: 0.7rem;
  }
  .stats-box {
    height: 260px;
    min-height: 260px;
    font-variant-numeric: tabular-nums;
  }
  .stats-box p.stat-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.35;
    margin: 0.4rem 0;
  }
  .stats-box p.stat-row .stat-row-label {
    color: #ffffffe6;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.35px;
  }
  .stats-box p.stat-row .stat-row-value {
    color: var(--value-color, #fff);
    font-weight: 700;
    margin-left: auto;
    white-space: nowrap;
  }
  .metrics-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}
@media (max-width: 768px) {
  .stats-box {
    height: auto !important;
    min-height: 150px !important;
    font-variant-numeric: tabular-nums;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .stats-box p.stat-row {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    margin: 0.35rem 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.32 !important;
  }
  .stats-box p.stat-row .stat-row-label {
    color: #ffffffe6;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.7px;
  }
  .stats-box p.stat-row .stat-row-value {
    color: var(--value-color, #fff);
    font-weight: 700;
    margin-left: auto;
    white-space: nowrap;
  }
  #drawerHeader .drawer-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 4rem);
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  header,
  .header-content {
    overflow: visible !important;
    padding: 0.75rem 0 !important;
  }
  .header-content {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1rem;
    min-height: 44px;
  }
}
.pro-card {
  background: #1414148c !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px #0006;
  border: 1px solid rgba(255, 85, 0, 0.2);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
.pro-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f50, #ff7b00);
  border-radius: 12px 12px 0 0;
  z-index: 2;
}
.pro-card:hover {
  transform: translateY(-6px) !important;
  box-shadow:
    0 12px 30px #0009,
    0 0 20px #ff550059 !important;
  border-color: var(--primary-color) !important;
}
.pro-card-photo {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center bottom !important;
  transition: transform 0.4s ease !important;
}
.pro-card:hover .pro-card-photo {
  transform: scale(1.08) translateY(1px) !important;
}
.record-display {
  min-height: 300px;
}
.record-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  width: 100%;
  position: relative;
  z-index: 20;
}
.rf-dropdown {
  position: relative;
  width: 100%;
  max-width: 340px;
}
.rf-native {
  position: absolute !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.rf-dropdown .rf-trigger {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.1rem;
  background: linear-gradient(135deg, #ff550029, #141414eb 70%), #141414;
  border: 1px solid rgba(255, 85, 0, 0.45);
  border-radius: var(--border-radius, 12px);
  color: #fff;
  font-family: var(--font-accent, "Orbitron", sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: left;
  box-shadow:
    0 4px 15px #00000073,
    0 0 12px #ff550026;
  transform: none;
}
.rf-dropdown .rf-trigger:hover,
.rf-dropdown.open .rf-trigger {
  border-color: var(--primary-color, #ff5500);
  background: linear-gradient(135deg, #ff550042, #181818f2 70%), #141414;
  box-shadow:
    0 6px 20px #00000080,
    0 0 18px #ff550059;
  transform: none;
}
.rf-dropdown .rf-trigger:focus-visible {
  outline: 2px solid var(--primary-color, #ff5500);
  outline-offset: 3px;
}
.rf-trigger-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.rf-trigger-main .rf-icon {
  color: var(--primary-color, #ff5500);
  font-size: 1rem;
  width: 1.2em;
  text-align: center;
  filter: drop-shadow(0 0 6px rgba(255, 85, 0, 0.6));
}
.rf-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rf-chevron {
  color: var(--primary-color, #ff5500);
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}
.rf-dropdown.open .rf-chevron {
  transform: rotate(180deg);
}
.rf-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 6px;
  list-style: none;
  background:
    radial-gradient(
      120% 100% at 50% 0%,
      rgba(255, 85, 0, 0.1) 0%,
      transparent 60%
    ),
    #101010f5;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 85, 0, 0.4);
  border-radius: var(--border-radius, 12px);
  box-shadow:
    0 14px 40px #000000a6,
    0 0 22px #ff55002e;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
}
.rf-dropdown.open .rf-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.rf-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: #cfcfcf;
  font-family: var(--font-accent, "Orbitron", sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.rf-option .rf-icon {
  width: 1.2em;
  text-align: center;
  color: #ff5500bf;
  transition: color 0.15s ease;
}
.rf-option .rf-text {
  flex: 1;
}
.rf-option .rf-check {
  font-size: 0.75rem;
  color: var(--primary-color, #ff5500);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.rf-option.active {
  background: #ff550024;
  color: #fff;
}
.rf-option.active .rf-icon {
  color: var(--primary-color, #ff5500);
}
.rf-option[aria-selected="true"] {
  background: linear-gradient(90deg, #ff55004d, #ff550014);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--primary-color, #ff5500);
}
.rf-option[aria-selected="true"] .rf-check {
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .rf-menu,
  .rf-chevron,
  .rf-option,
  .rf-option .rf-check {
    transition: none;
  }
}
@media (max-width: 768px) {
  .rf-dropdown {
    max-width: 320px;
  }
  .pro-card-photo,
  .pro-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    transform: translateY(1px);
  }
  .desktop-only {
    display: none !important;
  }
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  .metrics-modal-header h3 {
    text-wrap: nowrap;
  }
  .metrics-modal-close {
    width: 20px;
    justify-content: right;
  }
  .metrics-modal-back {
    width: 25px;
    justify-content: left;
  }
  .metric-value {
    font-size: 15px;
  }
  h1:after {
    bottom: -6px;
  }
  h1 {
    font-size: 1.5rem;
    margin-left: 0.8rem;
  }
  .footer-content {
    padding: 0 15px 15px;
  }
  .maps-grid .map-stat-item {
    padding: 0.55rem 0.4rem;
  }
  .maps-grid .map-stat-item i {
    font-size: 1rem;
    height: 1rem;
    line-height: 1rem;
  }
  .maps-grid .map-stat-item .stat-value {
    font-size: 0.98rem;
  }
}
.record-match-list h3 {
  display: none;
}
.metrics-card {
  grid-column: 1 / -1;
  background:
    radial-gradient(100% 100% at 50% 0%, #ff55000d, #12121299), #141414;
  border: 1px solid rgba(255, 85, 0, 0.25);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin: 0 0 1.5rem;
  box-shadow:
    0 4px 20px #0006,
    inset 0 1px #ffffff0d;
  height: auto;
  min-height: auto;
  box-sizing: border-box;
}
.metrics-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: Orbitron, sans-serif;
  flex-wrap: wrap;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f50;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 85, 0, 0.15);
  padding-bottom: 0.6rem;
}
.metrics-card-header .icon-accent {
  color: #f50;
  filter: drop-shadow(0 0 6px rgba(255, 85, 0, 0.6));
}
.metrics-grid {
  display: grid;
  gap: 0.8rem;
  width: 100%;
}
.metric-item {
  --m-color: #ff5500;
  background: #1a1a1ab3;
  border-radius: 8px;
  padding: 0.8rem 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.3rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  border: 1px solid rgba(255, 85, 0, 0.32);
}
.metric-item:hover {
  transform: translateY(-2px);
  border-color: #f506;
  box-shadow: 0 4px 12px #ff550026;
}
.metric-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric-label {
  font-size: 0.6rem;
  color: #a0a0a0;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.metric-item-bottom {
  display: flex;
  align-items: baseline;
}
.metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}
.metric-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--m-color);
  background: color-mix(in srgb, var(--m-color) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--m-color) 35%, transparent);
}
.badge-elite {
  color: #0a0a0a;
  background: var(--m-color);
  box-shadow: 0 0 8px var(--m-color);
}
.metric-progress-track {
  width: 100%;
  height: 4px;
  background: #ffffff14;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.2rem;
}
.metric-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--m-color) 65%, #000),
    var(--m-color)
  );
  box-shadow: 0 0 6px color-mix(in srgb, var(--m-color) 55%, transparent);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.metrics-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000a6;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.metrics-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.metrics-modal {
  position: relative;
  z-index: 10000;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 90%;
  max-width: 440px;
  height: 500px;
  box-shadow: 0 10px 30px #00000080;
  color: #fff;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.metrics-modal-overlay.active .metrics-modal {
  transform: scale(1);
}
.metrics-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background:
    radial-gradient(100% 100% at 50% 0%, #ff55000d, #12121299), #141414;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.metrics-modal-header h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1;
  flex-grow: 1;
  text-align: center;
  color: #f50;
}
.metrics-modal-close,
.metrics-modal-back {
  position: relative;
  z-index: 10001;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
  box-shadow: none;
  line-height: 1;
}
.metrics-modal-close:hover,
.metrics-modal-back:hover {
  text-shadow: 0 4px 12px rgba(255, 85, 0, 0.15);
  transform: translateY(-1px);
  background: none;
  box-shadow: none;
}
.metrics-modal-body {
  padding: 16px 20px;
  max-height: 400px;
}
.metrics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: Orbitron, sans-serif;
  color: #f50;
}
.metrics-list-item {
  position: relative;
  z-index: 10001;
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 8px;
  background:
    radial-gradient(100% 100% at 50% 0%, #ff55000d, #12121299), #141414;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
}
.metrics-list-item * {
  pointer-events: none;
}
.metrics-list-item:hover {
  color: #fff;
  background: #f503;
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #ff55004d;
}
.metric-detail-content {
  font-size: 14px;
  line-height: 1.6;
  color: #f50;
  font-family: Orbitron, sans-serif;
  letter-spacing: 1px;
}
.how-to-improve {
  margin: 0 0 0 auto;
  padding: 0.35rem 0.85rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #f50;
  background: #ff550014;
  border: 1px solid rgba(255, 85, 0, 0.4);
  border-radius: 999px;
  cursor: pointer;
  text-wrap: nowrap;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.how-to-improve:hover {
  background: #f503;
  box-shadow: 0 0 12px #ff55004d;
  transform: translateY(-1px);
}
.metric-detail-content a {
  color: #f50;
  font-weight: bolder;
}
.metric-detail-content p {
  margin-bottom: 8px;
}
.stats-container {
  width: 100%;
  max-width: 100%;
  margin: 2rem auto 0;
  display: block;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.stats-box {
  background:
    radial-gradient(100% 100% at 50% 0%, #ff55000d, #12121299), #141414;
  font-family: Orbitron, sans-serif;
  padding: 1.3rem;
  border-radius: 15px;
  border: 2px solid rgba(255, 85, 0, 0.2);
  box-shadow: 0 6px 15px #0000004d;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.stats-box.has-map-bg {
  background:
    linear-gradient(180deg, #0f0f0fb8, #0a0a0aed),
    var(--map-bg-url) center / cover no-repeat,
    #141414;
}
.wr-good {
  --value-color: #4caf50;
}
.wr-avg {
  --value-color: #ff9800;
}
.wr-poor {
  --value-color: #f44336;
}
#custom-error-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%);
  z-index: 99999;
  background: #0a0a0aa6;
  color: #f50;
  padding: 14px 24px;
  border-radius: 8px;
  border: 1px solid #ff5500;
  box-shadow: 0 4px 20px #00000080;
  font-size: 13px;
  text-align: center;
  transition: opacity 0.3s ease;
  width: 300px;
  letter-spacing: 2px;
}
.primary-btn {
  margin: 0 auto;
}
.aim-trainer-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 0 8px #ff46554d;
}
.aim-trainer-btn: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 ease;
}
.aim-trainer-btn:hover:before {
  left: 100%;
}
.modal {
  display: none;
  position: fixed;
  contain: layout;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background-color: #0a0b10d9;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.aim-modal-content {
  background: #1414148c;
  border: 1px solid rgba(255, 85, 0, 0.32);
  border-radius: 16px;
  max-width: 800px;
  width: 90%;
  padding: 24px;
  position: relative;
  box-shadow:
    0 10px 30px #0009,
    0 0 20px #ff465526;
  text-align: center;
  color: #fff;
  z-index: 9999;
}
.aim-modal-content h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
}
.aim-modal-content h2 i {
  color: #ff4655;
}
.close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  font-weight: 700;
  color: #8f96a3;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}
.close-btn:hover {
  color: #ff4655;
}
.aim-stats {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  margin-bottom: 20px;
}
.stat-box {
  flex: 1;
  background: #ffffff0a;
  border: 1px solid rgba(255, 85, 0, 0.32);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #a0a5b5;
}
.stat-box span {
  color: #fff;
  font-size: 1.1rem;
}
.aim-arena {
  position: relative;
  width: 100%;
  height: 450px;
  background: #0f1015;
  border: 2px solid rgba(255, 85, 0, 0.32);
  border-radius: 12px;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  box-shadow: inset 0 0 20px #000c;
}
.aim-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0aa6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  z-index: 10;
}
.aim-overlay.hidden {
  display: none;
}
.aim-overlay h3 {
  font-size: 1.8rem;
  margin: 0;
  color: #fff;
}
.aim-overlay p {
  font-size: 1.1rem;
  margin: 4px 0;
  color: #a0a5b5;
}
.aim-overlay p strong {
  color: #fff;
}
.primary-btn:active {
  transform: translateY(0);
}
.aim-target {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #ff4655 0% 40%,
    #fff 40% 70%,
    #ff4655 70%
  );
  box-shadow: 0 0 12px #ff4655cc;
  transform: translate(-50%, -50%) scale(0);
  animation: targetPop 0.15s forwards ease-out;
  cursor: pointer;
}
@keyframes targetPop {
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}
.grade-badge {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ff4655 !important;
  text-transform: uppercase;
}
.compare-form {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}
.compare-form .compare-input {
  flex: 1;
  min-width: 220px;
}
.compare-btn {
  height: 50px;
  min-width: 160px;
  white-space: nowrap;
  font-family: Orbitron, sans-serif;
  font-weight: 700;
}
.compare-btn:disabled,
.compare-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.compare-status {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-family: Orbitron, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}
.compare-status.loading,
.compare-status.error,
.compare-status.ok {
  display: flex;
}
.compare-status.loading {
  color: #a0a0a0;
}
.compare-status.error {
  color: #f44;
}
.compare-status.ok {
  color: #00e676;
}
.compare-output {
  margin-top: 1.4rem;
}
.compare-output:empty {
  margin-top: 0;
}
.compare-players {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.compare-player {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.compare-player.right {
  flex-direction: row-reverse;
  text-align: right;
}
.compare-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 85, 0, 0.6);
  flex-shrink: 0;
}
.compare-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1ae6;
  color: #f50;
}
.compare-nickname {
  font-family: Orbitron, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compare-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Orbitron, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #a0a0a0;
}
.compare-score .lead {
  color: #f50;
  text-shadow: 0 0 10px rgba(255, 85, 0, 0.6);
}
.compare-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.compare-row-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.compare-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: Orbitron, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.compare-label i {
  color: #f50;
}
.compare-val {
  font-family: Orbitron, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.compare-val.b {
  text-align: right;
}
.compare-row[data-winner="a"] .compare-val.a,
.compare-row[data-winner="b"] .compare-val.b {
  color: #f50;
}
.compare-track {
  display: flex;
  gap: 4px;
  height: 8px;
}
.compare-half {
  flex: 1;
  display: flex;
  background: #ffffff14;
  border-radius: 4px;
  overflow: hidden;
}
.compare-half.left {
  justify-content: flex-start;
}
.compare-half.right {
  justify-content: flex-end;
}
.compare-fill {
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: #ffffff47;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.compare-half.left .compare-fill {
  transform-origin: left center;
}
.compare-half.right .compare-fill {
  transform-origin: right center;
}
.compare-result.animate .compare-fill {
  width: var(--w);
}
.compare-row[data-winner="a"] .compare-half.left .compare-fill {
  background: linear-gradient(90deg, #f50, #ff8a3d);
  box-shadow: 0 0 8px #ff55008c;
}
.compare-row[data-winner="b"] .compare-half.right .compare-fill {
  background: linear-gradient(270deg, #f50, #ff8a3d);
  box-shadow: 0 0 8px #ff55008c;
}
@media (max-width: 768px) {
  .compare-form .compare-input {
    min-width: 100%;
  }
  .compare-btn {
    width: 100%;
  }
  .compare-nickname {
    font-size: 0.75rem;
  }
  .compare-avatar {
    width: 34px;
    height: 34px;
  }
  .compare-score {
    font-size: 1.2rem;
  }
  .compare-val {
    font-size: 0.95rem;
  }
}
.compare-section-title {
  margin: 1.4rem 0 0.9rem;
  padding-bottom: 0.4rem;
  font-family: Orbitron, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f50;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 85, 0, 0.15);
}
.compare-players + .compare-section-title {
  margin-top: 0;
}
.mc-card {
  --mc-accent: #ff5500;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 130px auto;
  align-items: center;
  column-gap: 1.4rem;
  padding: 0.85rem 1.3rem 0.85rem 1.5rem;
  margin-bottom: 0.6rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #141414;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 14px #00000059;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.mc-card.win {
  --mc-accent: #4caf50;
}
.mc-card.loss {
  --mc-accent: #f44336;
}
.mc-card:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, #0a0a0af0, #0a0a0acc 45%, #0a0a0a8c),
    var(--map-bg-url, none);
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.mc-card:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--mc-accent);
  box-shadow: 0 0 12px var(--mc-accent);
}
.mc-card:hover {
  transform: translateY(-2px);
  border-color: var(--mc-accent);
  box-shadow:
    0 8px 22px #00000080,
    0 0 16px color-mix(in srgb, var(--mc-accent) 30%, transparent);
}
.mc-card:hover:before {
  transform: scale(1.05);
}
.mc-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.mc-map {
  font-family: Orbitron, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: Orbitron, sans-serif;
  font-size: 0.68rem;
  color: #fff9;
}
.mc-date i {
  color: var(--primary-color);
  font-size: 0.7rem;
}
.mc-outcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.mc-result {
  min-width: 64px;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  font-family: Orbitron, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  color: var(--mc-accent);
  background: color-mix(in srgb, var(--mc-accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--mc-accent) 45%, transparent);
}
.mc-score {
  font-family: Orbitron, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.mc-stats {
  display: grid;
  grid-template-columns: repeat(6, 58px);
  gap: 0.4rem;
}
.mc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.2rem;
  border-radius: 10px;
  background: #0006;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
  font-family: Orbitron, sans-serif;
}
.mc-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.mc-stat-label {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #a0a0a0;
}
.mc-stat.good .mc-stat-value {
  color: #00e676;
}
.mc-stat.bad .mc-stat-value {
  color: #ff5252;
}
.mc-card.mc-error {
  grid-template-columns: 1fr;
  cursor: default;
  --mc-accent: #f44336;
}
.mc-card.mc-error:hover {
  transform: none;
}
.mc-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0.4rem 0 1rem;
}
.mc-chip:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, #0a0a0ae0, #0a0a0a99), var(--map-bg-url, none);
  background-size: cover;
  background-position: center;
  transition: opacity 0.2s ease;
}
.mc-chip:hover {
  transform: translateY(-1px);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 12px #ff550040;
}
.mc-chip.active {
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 14px #f506;
}
.mc-chip.active:before {
  background-image:
    linear-gradient(90deg, #ff550080, #140a05b3), var(--map-bg-url, none);
}
.mc-chip-count {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #ffffff24;
  font-size: 0.62rem;
}
.mc-chip.active .mc-chip-count {
  background: var(--primary-color);
  color: #fff;
}
.mc-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: #14141473;
  box-sizing: border-box;
}
.mc-more-btn {
  min-width: 220px;
  height: 46px;
  font-family: Orbitron, sans-serif;
  font-weight: 700;
}
@media (max-width: 1100px) {
  .mc-card {
    grid-template-columns: 1fr auto;
    row-gap: 0.7rem;
  }
  .mc-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(6, 1fr);
  }
  .mc-outcome {
    flex-direction: row;
    gap: 0.6rem;
  }
}
@media (max-width: 768px) {
  .mc-card {
    padding: 0.8rem 0.9rem 0.8rem 1.1rem;
    width: 280px;
  }
  .mc-map {
    font-size: 0.95rem;
  }
  .mc-outcome {
    flex-direction: column;
    gap: 0.2rem;
  }
  .mc-score {
    font-size: 1rem;
  }
  .mc-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .mc-filter {
    justify-content: flex-start;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .mc-filter::-webkit-scrollbar {
    display: none;
  }
  .mc-chip {
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .mc-more-btn {
    width: 100%;
  }
}
.mc-chip {
  white-space: nowrap;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0.5px;
  font-weight: 600;
  font-size: 0.72rem;
  font-family: Orbitron, sans-serif;
  color: #cfcfcf;
  background: #141414b3;
  border: 1px solid rgba(255, 85, 0, 0.25);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  gap: 0.5rem;
  overflow: hidden;
  isolation: isolate;
  position: relative;
  width: auto;
  max-width: none;
  margin: 0;
  min-height: 40px;
}
body:not(.profile-active) main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  justify-content: flex-start;
  padding-top: clamp(1rem, 4vh, 2.5rem);
  padding-bottom: 1rem;
}
body:not(.profile-active) header,
body:not(.profile-active) footer {
  position: relative;
  z-index: 1;
}
body:not(.profile-active):before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 25%,
    transparent 75%
  );
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}
#search {
  box-shadow: 0 8px 32px #00000073;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #1414148c;
  transition: all 0.3s ease;
  max-width: 1200px;
  margin-bottom: 1.6rem;
  padding: 1.5rem 2rem 0;
  border: 1px solid rgba(255, 85, 0, 0.32);
}
#search h2 {
  justify-content: left;
}
#searchButton {
  width: 250px;
  height: 60px;
  white-space: nowrap;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-hover)
  );
  border: 1px solid var(--primary-color);
  box-shadow: 0 4px 14px #ff550059;
}
#searchButton:hover {
  background: linear-gradient(135deg, var(--primary-hover), #cc4400);
  box-shadow: 0 6px 20px #ff550080;
  color: #fff;
}
@media (min-width: 769px) {
  .search-container {
    flex-wrap: nowrap;
    gap: 0;
    margin: 0 auto;
    border-radius: 14px;
    transition: box-shadow 0.25s ease;
  }
  .search-container:focus-within {
    box-shadow:
      0 0 0 1px #ff550080,
      0 0 28px #ff550047;
  }
  .search-container input[type="text"] {
    height: 60px;
    font-size: 1.05rem;
    border-radius: 14px 0 0 14px;
    border-right: none !important;
  }
  .search-container input[type="text"]:focus {
    box-shadow: none !important;
  }
  #searchButton {
    border-radius: 0 14px 14px 0;
  }
  #searchButton:hover {
    transform: none;
  }
}
.tools-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.2rem 0;
}
.tools-row .tool-chip {
  display: inline-flex;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: #ffffff0a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffffc7;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.2;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.tools-row .tool-chip i {
  font-size: 0.85rem;
  color: var(--primary-color);
}
.tools-row .tool-chip:before {
  display: none;
}
.tools-row .tool-chip:hover {
  background: #ff55001f;
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: none;
  transform: translateY(-1px);
}
.tools-row .tool-chip:focus-visible,
.pro-card:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}
.pro-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  justify-items: center;
  row-gap: 0;
  column-gap: 2.5rem;
  position: relative;
  bottom: 0;
  width: 100%;
  max-width: 1300px;
  margin-bottom: 0;
  background: none;
  backdrop-filter: none;
  border: none;
  border-radius: 20px;
  box-shadow: none;
  overflow: visible;
}
.pro-grid .pro-card {
  width: 200px;
  max-width: none !important;
  height: 250px;
}
.pro-card-body {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: auto;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: radial-gradient(
    80% 70% at 50% 100%,
    rgba(255, 85, 0, 0.28),
    transparent 70%
  );
}
.pro-card-header {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.8rem 0.6rem 0.6rem;
  background: linear-gradient(0deg, #0a0a0af2 15%, #0a0a0a00);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pro-card-header:after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin: 0.35rem auto 0;
  border-radius: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}
.pro-card:hover .pro-card-header:after {
  width: 56px;
}
.pro-card:after {
  content: "PRO";
  position: absolute;
  top: 10px;
  right: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ff5500d9;
  color: #fff;
  font-family: var(--font-accent);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 2px 6px #0006;
}
body:not(.profile-active) {
  min-height: 0;
  height: 100vh !important;
  --footer-h: 112px;
}
body:not(.profile-active) footer {
  display: flex;
  align-items: center;
  min-height: var(--footer-h);
}
body:not(.profile-active) footer .footer-content {
  width: 100%;
}
footer .footer-content {
  padding: 1.5rem 15px 0.5rem;
}
.footer-content p {
  margin: 0.8rem 0 0;
  color: var(--primary-color);
}
.support-btn {
  background: #ff69b4;
  color: #fff;
}
.support-btn:hover {
  transform: translateY(-2px);
  background: #ff69b4;
  border-color: var(--primary-color);
  box-shadow:
    0 10px 24px #00000080,
    0 0 16px #ff55004d;
}
@media (max-width: 768px) {
  body:not(.profile-active) main {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 0.5rem 0.3rem !important;
  }
  #search {
    padding: 1rem;
    margin-bottom: 0.8rem;
  }
  .search-container {
    display: flex;
    gap: 0.7rem;
  }
  #searchButton {
    width: 100%;
    min-width: 0;
    max-width: 300px;
    height: 50px;
  }
  .tools-row {
    margin-top: 0.7rem;
  }
  .pro-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.7rem !important;
    padding: 0 0.5rem !important;
  }
  .pro-grid .pro-card {
    width: 145px !important;
    height: 160px !important;
  }
  .pro-grid .pro-card-header {
    padding: 1rem 0.3rem 0.4rem;
    font-size: 0.8rem;
  }
  .footer-buttons .support-btn,
  .footer-buttons .contact-btn {
    width: auto;
    flex: 1;
    padding: 0.65rem 0.8rem;
  }
}
