:where([class^="ri-"])::before { content: "\f3c2"; }
:root {
--bg-light: #f5f5f5;
--card-light: #ffffff;
--text-light: #333333;
--bg-dark: #121212;
--card-dark: #1e1e1e;
--text-dark: #ffffff;
--win-bg: #E8F5E9;
--lose-bg: #FFEBEE;
--blue-team: #F3F9FF;
--red-team: #FFF3F3;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
transition: background-color 0.3s, color 0.3s;
}
body.light {
background-color: var(--bg-light);
color: var(--text-light);
}
body.dark {
background-color: var(--bg-dark);
color: var(--text-dark);
}
.card {
transition: background-color 0.3s, box-shadow 0.3s;
}
body.light .card {
background-color: var(--card-light);
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
body.dark .card {
background-color: var(--card-dark);
box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.win {
background-color: rgba(220, 252, 231, 0.6);
}
.lose {
background-color: rgba(254, 226, 226, 0.6);
}
body.dark .win {
background-color: rgba(34, 197, 94, 0.15);
}
body.dark .lose {
background-color: rgba(239, 68, 68, 0.15);
}
.blue-team {
background-color: rgba(219, 234, 254, 0.6);
}
.red-team {
background-color: rgba(254, 226, 226, 0.6);
}
body.dark .blue-team {
background-color: rgba(59, 130, 246, 0.15);
}
body.dark .red-team {
background-color: rgba(239, 68, 68, 0.15);
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
.scrollbar-thin::-webkit-scrollbar {
width: 4px;
height: 4px;
}
.scrollbar-thin::-webkit-scrollbar-track {
background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
background: #d1d5db;
border-radius: 4px;
}
body.dark .scrollbar-thin::-webkit-scrollbar-thumb {
background: #4b5563;
}
.switch {
position: relative;
display: inline-block;
width: 48px;
height: 24px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 24px;
}
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #4F46E5;
}
input:checked + .slider:before {
transform: translateX(24px);
}

.modal {
    transition: opacity 0.3s ease;
    }
    .modal-content {
    transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .modal.hidden .modal-content {
    transform: scale(0.95);
    opacity: 0;
    }
    .modal.hidden {
    opacity: 0;
    pointer-events: none;
    }
    .tab-content {
    display: none;
    }
    .tab-content.active {
    display: block;
    }

    .history-item {
        transition: opacity 0.3s, transform 0.3s;
      }
      .history-item.removing {
        opacity: 0;
        transform: translateX(100px);
      }
      



      .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 50;
        animation: fadeIn 0.3s ease;
        }
        .modal.show {
          display: block;
      }
      
        .modal-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 375px;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 16px;
        animation: slideUp 0.3s ease;
        }
        @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
        }
        @keyframes slideUp {
        from { transform: translate(-50%, -40%); opacity: 0; }
        to { transform: translate(-50%, -50%); opacity: 1; }
        }
        .blue-team {
        background-color: rgba(74, 144, 226, 0.1);
        }
        .red-team {
        background-color: rgba(255, 82, 82, 0.1);
        }
        .player-details {
        display: none;
        }
        .player-details.active {
        display: block;
        }
        .win-bg {
        background-color: rgba(52, 211, 153, 0.2);
        }
        .lose-bg {
        background-color: rgba(239, 68, 68, 0.2);
        }

/*云顶*/
.star {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  color: gold;
  font-size: 10px;
  line-height: 1;
  }
  .equipment {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1px;
  }
  .equipment-icon {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  }
  .champion-container {
  position: relative;
  width: 30px;
  height: 30px;
  margin: 2px;
  }
  .synergy-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 2px;
  }
  .match-card {
  background-color: rgb(var(--card-rgb));
  border: 1px solid rgb(var(--card-border-rgb));
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  }
  .match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--card-border-rgb), 0.2);
  }
  .match-card .champion-container {
  position: relative;
  width: 32px;
  height: 32px;
  margin: 2px;
  border-radius: 50%;
  overflow: hidden;
  }
  .match-card .champion-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  }
  .match-card .star {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #FFD700;
  font-size: 8px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  }
  .match-card .equipment {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1px;
  padding: 1px;
  }
  .match-card .equipment-icon {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  }
  .player-card {
  background-color: #98b3ec;
  border: 1px solid rgb(var(--card-border-rgb));
  border-radius: 8px;
  padding: 12px;
  margin: 6px 0;
  }
  .player-card .champion-container {
  position: relative;
  width: 28px;
  height: 28px;
  margin: 2px;
  border-radius: 50%;
  overflow: hidden;
  }
  .player-card .champion-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  }
  .player-card .star {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #FFD700;
  font-size: 7px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  }
  .player-card .equipment {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1px;
  padding: 1px;
  }
  .player-card .equipment-icon {
  width: 12px;
  height: 12px;
  border-radius: 1px;
  }
  .rank-1 { color: #FFD700; }
  .rank-2 { color: #C0C0C0; }
  .rank-3 { color: #CD7F32; }
  .rank-4, .rank-5, .rank-6, .rank-7, .rank-8 { color: rgb(var(--secondary-rgb)); }
  .star-1:before { content: "★"; }
  .star-2:before { content: "★★"; }
  .star-3:before { content: "★★★"; }
  .synergy-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  }
  .rank-1 { color: #FFD700; }
  .rank-2 { color: #C0C0C0; }
  .rank-3 { color: #CD7F32; }
  .rank-4 { color: #9AA4AF; }
  .rank-5, .rank-6, .rank-7, .rank-8 { color: #151616;; }
  .star-1:before { content: "★"; }
  .star-2:before { content: "★★"; }
  .star-3:before { content: "★★★"; }
  .tier-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #5383E8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 2px solid #C89B3C;
  }
  .champion-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  }
  .nav-bar {
  position: fixed;
  width: 100%;
  top: 0px;
  background-color: rgb(var(--background-start-rgb));
  z-index: 50;
  border-bottom: 1px solid rgb(var(--card-border-rgb));
  }
  .content-area {
  margin-top: 60px;
  padding-bottom: 60px;
  }
  .membership-option.selected {
    border-color: #3b82f6; /* primary color */
    background-color: #f0f9ff; /* light blue background */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.dark .membership-option.selected {
    background-color: #1e3a8a; /* dark blue background */
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}