body {
    background-color: #121212!important;
    font-family: "Quicksand", "Open Sans", sans-serif!important;
    overscroll-behavior: none!important; 
}

html {
    overscroll-behavior: none!important; 
}

.user-container .row:nth-last-of-type(2),
.team-container .row:first-of-type {
    height: 150px;
}

.user-container .row:first-of-type .col-9{
    padding-left: 0;
}

.profile-name-row a {
    color: #ffffff;
}

.profile-name-row {
    padding-right: 10px;
}

.profile-name-row .fa-user-plus {
    padding-right: 0px!important;
}

.profile-name-row  div a,
.mtch-friend-container div a {
    background-color: #ffffff1a;
    border-radius: 0.375rem;
    padding-top: 5px;
    padding-bottom: 5px;
    display: block;
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding-left: 20px;
    height: 50px;
}

.mtch-friend-container div .add-player-btn {
    padding-top: 10px!important;
}

.mtch-friend-container {
margin-bottom: 40px;
}

#frnd {
    padding-bottom: 15px;
}

.card {
    color: #fff;
}

.brandText {
    color: #fff;
    padding-left: 15px;
    font-size: 20px;
}

.pp-row {
    color: #ffffff;
}

.navbar {
   background-color: #ffffff1a!important;
}

.profile-picture {
    width: 100px;
    max-width: 100px;
    max-height: 100px;
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    aspect-ratio: 1;
    /*aspect-ratio: 1/1;*/
}

.pp-container {
    padding-top: 20px;
    padding-bottom: 20px;
    border-right: 1px solid #ffffff1a;
    text-align: center;
    height: fit-content;
    height: 150px;
    position: relative;
}

.home-arrow-container {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    height: fit-content;
    height: 120px;
    position: relative;
}

.created-container {
    position: relative;
    height: 150px;
}

.center-container {
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: fit-content;
}

.date-joined-text{
    text-align: center;
    color: #ffffffa1;
    font-size: 16px;
}

.date-joined-text p{
    margin-bottom: 0;
}

.date-created-text{
    text-align: center;
    color: #ffffffa1;
    font-size: 16px;
}

.date-created-text p{
    margin-bottom: 0;
}

.date-created-date{
    text-align: center;
    color: #ffffff;
    font-size: 16px;

}

.date-joined-date{
    text-align: center;
    color: #ffffff;
    font-size: 16px;
}


.profile-desc {
    margin-top: 50px;
    margin-bottom: 50px;
    padding-left: 30px;
}

.team-desc {
    margin-top: 50px;
    margin-bottom: 50px;
    padding-left: 30px;
}

.profile-name {
    color:#ffffff;
    font-size: 32px;
}

.profile-team {
    color:#ffffffa1;
}

.profile-menu-container,
.friends-menu-container {
    padding-left: 30px;
    padding-right: 20px;
}

.profile-menu-container div a {
    background-color: #ffffff1a;
    margin-bottom: 5px;
    border-radius: .375rem;
    padding-top: 10px;
    padding-bottom: 10px;
    display: block;
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding-left: 20px;
}

@media screen and (min-width: 992px) {
    .addfriends-container .decline-button a {
        padding-bottom: 16px!important;
        padding-top: 16px!important;
    }
}

.friends-menu-container div a,
.addfriends-container div a {
    background-color: #ffffff1a;
    margin-bottom: 30px;
    border-radius: .375rem;
    padding-top: 10px;
    padding-bottom: 10px;
    display: block;
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding-left: 20px;
    height: 60px;
}

.addfriends-container .add-button a {
    padding-top: 15px;
}

.mystats-menu-container,
.leaderboard-menu-container {
    color: #ffffff;
    padding-left: 30px;
    padding-right: 20px;
}

.mystats-menu-container {
    color: #ffffff;
    padding-left: 30px;
    padding-right: 20px;
}

#l7m {
    margin-top: 50px;
}

@media screen and (max-width: 991px) {
.dropdown:not(:last-child) .nav-link {
    padding-bottom: 10px!important;
    border-bottom: 1px solid #ffffff14;
}
}
@media screen and (min-width: 992px) {
.dropdown:not(:last-child) .nav-link {
    border-right: 1px solid #ffffff26;
}
}


@media screen and (min-width: 992px) {
.nav-link {
    padding-left: 20px!important;
    padding-right: 20px!important;
}
}

@media screen and (max-width: 615px) { 
    .mtch-friend-container div a {
        padding-top: 10px!important;
    }
    .addfriends-container div a {
        padding-top: 10px!important;
        height: 50px;
    }
}

@media screen and (min-width: 540px) {
.profile-menu-container .fa-angle-right {
    padding-top: 1%!important;
}

.friends-row .friends-button .fa-angle-right {
    padding-top: 2%!important;
}
}

@media screen and (min-width: 740px) {
    .friends-container .friends-menu-container div a {
        height: 80px!important;
    }
}

.btn-primary {
    background: #14661296!important;
    border: none!important;
}

.btn-primary:hover {
    background: #146612eb!important;
    border: none!important;
}

.friends-menu-container .fa-angle-right {
    padding-top: 3%!important;
}

.friends-button .fa-angle-right {
    padding-top: 5%!important;
}

.addfriends-container,
.create-match-container,
.create-team-container{
    color: #ffffff;
    padding-left: 30px!important;
    padding-right: 30px!important; 
}

#create-team-form {
    margin-top: 25px;
}

#teamname {
    float: right;
}

.matchstats .mystats-menu-container {
    padding-left: 30px;
    padding-right: 30px;
}

.single {
    background: gray;
}

.double {
    background: #005400;
}

.triple {
    background: #cb2d2da1;
}

.winnertext {
    font-size: 8px;
    font-style: italic;
    text-decoration: none;
    color: white;
}

.stats-name {
    margin-bottom: 20px
}

.place {
    color: #AF9500;
}

.place2 {
    color: #D7D7D7;
}

.place3 {
    color: #AD8A56;
}

#match-stats_ctn {
    color: white;
}

#searchterm {
    color: #121212;
    width: 100%;
    border-radius: .375rem;
    border: none;
    padding: 5px;
    margin-bottom: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 18px;
}

.add-button a {
    background-color: #14661296!important;
    --bs-btn-font-size: 18px; 
    text-align: center;
    padding-left: 0!important;
}

.add-player-btn {
    background-color: #14661296!important;
    --bs-btn-font-size: 18px; 
    text-align: center;
    padding-left: 0!important;
}

.decline-button a {
    background-color: #e72d2d96!important;
    --bs-btn-font-size: 18px; 
    text-align: center;
    padding-left: 0!important;
}

#butsave {
    padding: 5px;
    width: 100%;
    background: #14661296;
    border: none;
    padding-top: 14px;
    padding-bottom: 12px;
    margin-bottom: 60px;
}

.addfriends-container .col-10,
.addfriends-container .col-8 {
    padding-left: 0!important;
    padding-right: 5px!important;
}

.addfriends-container .col-2,
.addfriends-container .col-4 {
    padding-right: 0!important;
    padding-left: 5px!important;
}

.friends-container .accept {
    padding-right: 0px!important;

}

.friends-container .deny {
    padding-right: 0px!important;
}

main .container {
    max-width: 720px!important;
}


.friends-heading-container h1,
.stats-heading-container h1,
.mystats-heading-container h1,
.addfriends-heading-container h1,
.create-match-heading-container h1,
#ppstore-form h1 {
    color: #ffffff;
    margin-bottom: 40px;
}

#ppstore-form{
    text-align: center;
}

#ppstore-form h1,
#ppstore-form .col-8{
    text-align: left;
}

.friends-button .fa-angle-right {
    padding-top: 6px;
    padding-right: 5%;
}

.friends-button {
    font-size: 14px!important;
    padding-left: 10px!important;
    padding-right: 5px;
    background-color: #ffffff00!important;
}

.friends-row {
    margin-bottom: -10px;
}

.mystats-row {
    text-align: left;
    padding-bottom: 5px;
    font-size: 16px;

}

.mystats-group {
    margin-bottom: 40px;
    background: #ffffff1a;
    border-radius: .375rem;
    padding-top: 10px;
    padding-bottom: 10px;
}

.mystats-expand {
    display: none;
    margin-top: 15px;
}

.mystats-row-container {
    text-align: center;
}

.mystats-row-heading {
    font-size: 24px;
    margin-bottom: 0px;
    position: relative;
}


.stats-border {
    border-bottom: 1px solid #ffffff1a;
    animation-duration: 0.5s;
    animation-name: appear;
}

@keyframes appear {
    from { border-bottom: 1px solid #ffffff00; }
    to { border-bottom: 1px solid #ffffff1a; }
}

.mystats-expand .expanded {
    display: block;
  }

.row {
    margin-right:0!important;
    margin-left:0!important;
}


.mini-profile-pic {
    width: 10%;
    margin-right: 15px;
    aspect-ratio: 1 / 1;
}


.profile-menu-container div {
    margin-bottom: 30px;
}

.profile-menu-container div:last-of-type {
    margin-bottom: 70px;

}

.fa-angle-right {
    float: right;
    padding-right: 6%;
    padding-top: 2.5%;
}

.fa-arrow-right {
    float: right;
    padding-right: 1%;
    padding-top: 5px;
}

.fa-right-from-bracket,
.fa-xmark {
    float: right;
    padding-right: 6%;
    padding-top: 5px;
}

.friends-menu-container .fa-xmark {
    float: none;
}


.fa-user-group,
.fa-people-group,
.fa-user-plus,
.fa-people-line {
    padding-right: 20px;
}

.fa-chart-simple,
.fa-table  {
    padding-right: 27px;
}

.home-head-container {
    text-align: center;
    width: fit-content;
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.home-heading-1 {
    color:#ffffff;
    font-size: 55px;
    filter: drop-shadow(-5px 0px 2px rgb(255 255 255 / 0.4));
}
.home-heading-2 {
    color:#ffffff;
    font-size: 55px;
    filter: drop-shadow(-5px 0px 2px rgb(255 255 255 / 0.4));
}

.home-heading-3 {
    color:#ffffff;
    font-size: 55px;
    filter: drop-shadow(-4px 0px 1px rgb(255 255 255 / 0.4));
}

.home-pos {
    position: relative;
    margin-top: 5px;
    padding-bottom: 10vh;
}

.home-text {
    color:#ffffff;
    font-size: 18px;
}

.last-text {
    margin-bottom: 10vh;
}

.home-img {
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 9vh;
    width: 60%;
    rotate: 202deg;
    -webkit-font-smoothing: antialiased;
    animation-duration: 0.5s;
    animation-name: slideRight;
    filter: drop-shadow(1px -3px 1px rgb(255 255 255 / 0.4))
}

@keyframes slideRight {
    from { left: -200vw; top: -20%; }
    to { left: 0%; bottom: 9vh; }
}

.profile-logout {
    margin-bottom: 5px;
    border-radius: 0.375rem;
    padding-top: 10px;
    padding-bottom: 10px;
    display: block;
    text-decoration: none;
    color: white;
    font-size: 18px;
    background: #e72d2d96;
    padding-left: 20px;
    margin-top: 15px;
}

/* .home-create-game{
    margin-bottom: 5px;
    border-radius: 0.375rem;
    padding-top: 10px;
    padding-bottom: 10px;
    display: block;
    text-decoration: none;
    color: white;
    font-size: 18px;
    background: #14661296;
    padding-left: 20px;
    margin-top: 15px;
    width: 70%!important;
    margin: auto;
} */

.home-create-game:hover,
.login-button:hover,
#butsave:hover,
.create-match input:hover,
.add-button a:hover,
.pp-submit:hover {
    background: #146612eb;
}

.fa-cloud-arrow-up {
    margin-left: 10px;
}

.pp-upload {
    padding: 5px;
    background: #ffffff1a;
    border-radius: 0.375rem;
}

.pp-upload:hover,
.edit-pp:hover  {
    background: #ffffff38;
}

.profile-logout:hover,
.decline-button a:hover {
    background: #e72d2dcf;
}

.profile-menu-container div a:hover {
   background: #ffffff38;
}

.pp-row {
    margin-bottom: 25px;
}

.register-button,
.login-button {
    border-radius: 0.375rem;
    padding-top: 10px;
    padding-bottom: 10px;
    display: block;
    text-decoration: none;
    color: white;
    font-size: 18px;
    margin-top: 5px;
    width: 60%;
    margin: auto;
}

.create-match input,
.pp-submit,
.team-submit {
    background: #14661296;
    width: 70%!important;
    margin-top: 50px;
    border: none;
    color: white;
    border-radius: 0.375rem;
    padding-top: 10px;
    padding-bottom: 10px;
}

.team-submit {
    align-self: center;
    display: block;
    margin-top: 25px;
    margin-right: auto;
    margin-left: auto;
}

a:hover {
    color: white!important;
}

.login-button {
    background: #ffffff1a;
}

.register-button {
    background: #14661296;
}

.auth-col {
    text-align: center;
}

.fa-chevron-down {
    font-size: 14px;
    float: right;
    padding-top: 12px;
    padding-right: 10px;
    transition: transform 0.5s;
    -webkit-transition: -webkit-transform 0.5s;
    transform-origin: 8px 19px;
}

.updown {
    -webkit-transform: rotateX(180deg);
    transform: rotateX(180deg);
    -moz-transform: rotateX(180deg);
    -ms-transform: rotateX(180deg);
}

#matchtype {
    width: 100%;
    border: none;
    color:#fff;
    border-radius: .375rem;
    font-size: 18px;
}

select option {
    color:#121212;
}

label[for=matchtype] {
    font-size: 18px;
}

select,
select option {
   background: #ffffff1a;
}

select:focus-visible {
   outline: none;
}

label[for=checkout] {
    font-size: 18px;
    padding-right: 10px;
}

.matchtype-row {
    margin-top: 40px!important;
}

.create-match {
    text-align: center;
}

.create-match .home-create-game {
    padding-right: 20px;
    margin-top: 40px!important;
}

#frnd-expd .row {
    margin-bottom: 20px;
}

#frnd-expd .row:last-of-type {
    margin-bottom: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-left: 58%;
  }
  
  .switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #146612eb!important;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #146612eb;
  }

  
  input:checked + .slider:before {
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

  .edit-pp {
    position: absolute;
    margin: auto;
    top: 130px;
    left: 0;
    right: 0;
    text-decoration: none;
    background: #ffffff1a;
    color: white;
    width: 100px;
    border-radius: 0.375rem;
  }

  .numpad {
    position: fixed;
    bottom: 0;
    height: 45%;
    background: #ffffff1a;
    width: 100%;
    left: 0%;
    z-index: 9999;
  }

  .display-area {
    overflow: scroll;
  }

  .mtch-container {
    padding: 0!important;
    max-height: fit-content;
    overflow: hidden;
  }

  .mtch-container .row { 
    height: 17.5%;
  }

  
  .mtch-container .big-row { 
    height: 15%;
  }

  .mtch-container .col-3,
  .mtch-container .col-4,
  .mtch-container .col-2{ 
    border-top: 1px solid #ffffff1a;
    border-right: 1px solid #ffffff1a;
    position: relative;
    text-align: center;
  }

  .mtch-container button { 
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
  }

  .mtch-container .col-2,
  .mtch-container .col-4,
  .mtch-container .col-3 { 
    -webkit-tap-highlight-color: transparent;
  }

  .dart-index { 
    background: none;
    border: none;
    color: #ffffff8f;
    font-size: 16px;
  }

  .center-all {
    top: 50%;  
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    position: absolute;
    touch-action: manipulation;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
  }

  .col-2 .center-all {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }

  .red-bck {
    background: #cb2d2da1;
  }

  .orange-bck {
    background: #b96e11;
  }

  .scores  {
    height: 250px!important;  }

  .scores .player,
  .scores .score,
  .scores .avg {
    color: #ffffff5d;
  }

  .active-player {
    color: #ffffff!important;
    text-shadow: 0px 0px 12px white;
  }

  .player,
  .curr-player {
    text-align: center;
    color: #ffffff;
    font-size: 18px;
  }

  #curr-player {
    font-size: 22px;
    display: none;
  }

  #curr-player-score {
    padding-bottom: 30px;
    font-size: 70px;
  }

  .curr-player .row {
    font-size: 14px;
  }

  .player {
    padding-bottom: 10px;
  }

  .score,
  .avg {
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
  }

  .mtch-container .score-row {
    height: 250px!important;
    z-index: -9999;
  }

  .curr-player{
    position: absolute;
    top: 30%!important;
    left: 30%;
  }

  .sadge {
    color: #ffffff;
    font-size: 18px;
    text-align: center;
    margin-top: 150px;
  }

  #frnd {
    padding-left: 12px;
  }

  .leaderboard-heading-container {
    margin-bottom: 20px;
  }

    .leaderboard-yearly-container,
    .leaderboard-alltime-container,
    .leaderboard-weekly-container,
    .leaderboard-points-container,
    .leaderboard-twentysix-container,
    .leaderboard-winpct-container {
        max-width: 600px;
        margin: auto;
        margin-top: 40px;
    }

  .leaderboard-points-container .leaderboard-table-header .leaderboard-table-cell:first-of-type,
  .leaderboard-twentysix-container .leaderboard-table-header .leaderboard-table-cell:first-of-type{
    border-right: 1px solid #fff;
  }

  .leaderboard-table-container {
    display: flex;
    flex-direction: column;
    margin: auto;
    padding: 10px;
    border-radius: 0.375rem;
    background: #ffffff1a;
}

.leaderboard-table-row {
    display: flex;
}

.leaderboard-table-header {
    border: none!important;
    padding: 0!important;
    font-weight: 700;
    font-size: 20px;
}

.leaderboard-table-header .leaderboard-table-cell{
    border-top: none;
}

.leaderboard-table-header .leaderboard-table-cell:first-of-type{
    border: none;
}

.leaderboard-table-header .leaderboard-table-cell:nth-of-type(2){
    border-bottom: none;
}


.leaderboard-table-header .leaderboard-table-cell:last-of-type{
    border: none;
}

.leaderboard-table-row .leaderboard-table-cell:first-of-type{
    border-left: none;
    border-bottom: none;
}

.leaderboard-table-row:not(.leaderboard-table-header) .leaderboard-table-cell:nth-of-type(2){
    border-bottom: none;
    border-right: none;
    border-left: none;
}

.leaderboard-table-row .leaderboard-table-cell:last-of-type{
    border-right: none;
    border-bottom: none;
}

.leaderboard-table-header,
.leaderboard-table-cell {
    flex: 1;
    padding: 8px;
    text-align: left;
    border: 1px solid #fff;
    text-align: center;
}

@media screen and (max-width: 300px) {
    .leaderboard-table-row {
        flex-direction: column;
    }

    .leaderboard-table-cell {
        text-align: center;
    }
}

#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255 255 255 / 13%);
    display: none;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.leaderboard-yearly-container {
    position: relative;
}

.compare .leaderboard-table-row .leaderboard-table-cell:first-of-type {
    font-weight: 700;
}

.compare .leaderboard-table-cell {
    font-size: 16px;
}

.compare select {
    background: #fff0;
    padding: 5px;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: .9em;
    color: #fff;
}
@media (max-width: 600px) {
    .compare .leaderboard-table-row .leaderboard-table-cell:first-of-type{
        font-size: .9em;
    }

    .compare select {
        background-color: rgba(255, 255, 255, 0.219);
        padding: 5px;
        border: none;
        font-size: .9em;
        color: #fff;
        text-align: center;
        max-width: 80px;
    }
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(10px, 1fr));
    grid-gap: 20px;
    gap: 20px;
    align-items: stretch;
    justify-items: auto;
    width: 90% !important;
    margin-inline: auto;
    padding-inline: 0!important;
  }

  .home-grid > div{
    border-radius: 0.375em;
  }

  .home-grid > div > a{
    border-radius: 0.375em;
    font-size: 20px;
    padding-inline: 20px;
    text-decoration: none;
  }

  .home-grid-col-1 {
    grid-column: span 1;
    min-height: 120px;
  }

  .home-grid-col-2 {
    grid-column: span 2;
    min-height: 60px;
  }

  .home-create-game,
  .home-logout {
    display: flex;
    color: white;
    background: #14661296;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: space-between;

}

.home-logout {
    background: #e72d2d96;
}

.home-button {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
    width: 100%;
    background-color: #ffffff1a;
}

.home-button
.fa-chart-simple {
    padding-right: 0px;
}

.home-welcome-heading {
    color: #fff;
    width: 90%!important;
    margin-inline: auto;
    padding-inline: 0px!important;
    margin-block: 30px;
    margin-top: 15px!important;
}

.time-period-selector {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #ffffff1a;
    border-radius: 0.375rem;
}

.time-period-selector label {
    color: #ffffffc9;
    font-size: 16px;
    font-weight: 600;
}

.custom-select-wrapper {
    position: relative;
    flex: 1;
    min-width: 160px;
    max-width: 220px;
}

.time-period-selector select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid #3a3a3a;
    padding: 10px 36px 10px 14px;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 15px;
    font-family: "Quicksand", "Open Sans", sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.937 10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.time-period-selector select:hover {
    border-color: #555;
    background-color: #252525;
}

.time-period-selector select:focus {
    outline: none;
    border-color: #14661296;
    box-shadow: 0 0 0 2px rgba(20, 102, 18, 0.25);
}

.time-period-selector select optgroup {
    background-color: #1e1e1e;
    color: #ffffffb3;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 0;
    font-style: normal;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.time-period-selector select option {
    background-color: #2a2a2a;
    color: #ffffff;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 400;
}

.time-period-selector select option:hover,
.time-period-selector select option:focus,
.time-period-selector select option:checked {
    background-color: #146612aa;
    color: #ffffff;
}

/* Year options subtle separator */
.time-period-selector select optgroup + optgroup {
    border-top: 1px solid #3a3a3a;
}

@media (max-width: 600px) {
    .time-period-selector {
        padding: 10px 12px;
        gap: 8px;
    }

    .time-period-selector label {
        font-size: 14px;
        width: 100%;
    }

    .custom-select-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .time-period-selector select {
        font-size: 14px;
        padding: 9px 32px 9px 12px;
    }
}
/* ── Dartboard Heatmap ───────────────────────────────────────────── */
.dartboard-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 10px 10px;
}

.dartboard-container {
    position: relative;
    width: 100%;
    max-width: 380px;
}

#dartboard-svg {
    width: 100%;
    height: auto;
    display: block;
    cursor: crosshair;
}

#dartboard-svg path,
#dartboard-svg circle {
    transition: opacity 0.15s ease, filter 0.15s ease;
    cursor: pointer;
}

#dartboard-svg path:hover,
#dartboard-svg circle:hover {
    opacity: 0.85;
    filter: brightness(1.2);
}

.dart-tooltip {
    position: absolute;
    background: rgba(18, 18, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    color: #ffffff;
    padding: 10px 14px;
    pointer-events: none;
    z-index: 9999;
    font-family: "Quicksand", "Open Sans", sans-serif;
    min-width: 130px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.tooltip-segment {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
}

.tooltip-hits {
    font-size: 13px;
    color: #ffffffc0;
    margin-bottom: 2px;
}

.tooltip-rate {
    font-size: 13px;
    color: #ff6b6b;
    font-weight: 600;
}

/* Heatmap legend */
.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #ffffffa0;
}

.heatmap-legend-bar {
    width: 100px;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, rgba(220, 50, 50, 0.4), rgba(220, 10, 10, 1));
    border: 1px solid #ffffff22;
}

/* Responsive adjustments */
@media screen and (max-width: 400px) {
    .dartboard-container {
        max-width: 300px;
    }
    
    #dartboard-svg text {
        font-size: 12px !important;
    }
    
    .heatmap-legend {
        font-size: 12px;
        gap: 8px;
    }
    
    .heatmap-legend-bar {
        width: 80px;
        height: 10px;
    }
}

/* ── Heatmap View Toggle ─────────────────────────────────────────── */
.heatmap-view-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #1a1a1a;
    border-radius: 0.375rem;
    border: 1px solid #333;
}

.heatmap-view-toggle label {
    color: #ffffffc0;
    font-size: 14px;
    font-weight: 600;
}

.heatmap-view-toggle select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #252525;
    color: #ffffff;
    border: 1px solid #444;
    padding: 8px 32px 8px 12px;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 14px;
    font-family: "Quicksand", "Open Sans", sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.937 10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.heatmap-view-toggle select:hover {
    border-color: #555;
    background-color: #2a2a2a;
}

.heatmap-view-toggle select:focus {
    outline: none;
    border-color: #067008;
    box-shadow: 0 0 0 2px rgba(6, 112, 8, 0.25);
}

.heatmap-view-toggle select option {
    background-color: #252525;
    color: #ffffff;
    padding: 8px;
}

/* ── Heatmap Legends ─────────────────────────────────────────────── */
.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #ffffffa0;
}

.heatmap-legend-bytype {
    flex-wrap: wrap;
    gap: 16px 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-label {
    font-size: 12px;
    font-weight: 600;
    color: #ffffffc0;
    min-width: 50px;
}

.heatmap-legend-bar {
    width: 80px;
    height: 12px;
    border-radius: 6px;
    border: 1px solid #ffffff22;
}

.legend-red {
    background: linear-gradient(to right, #ffffff, #b40000);
}

.legend-green {
    background: linear-gradient(to right, #ffffff, #008c00);
}

.legend-blue {
    background: linear-gradient(to right, #ffffff, #003cb4);
}

/* Responsive adjustments */
@media screen and (max-width: 400px) {
    .heatmap-view-toggle {
        flex-direction: column;
        gap: 8px;
    }
    
    .heatmap-view-toggle select {
        width: 100%;
    }
    
    .heatmap-legend-bytype {
        flex-direction: column;
        gap: 10px;
    }
    
    .legend-item {
        justify-content: center;
    }
    
    .heatmap-legend-bar {
        width: 100px;
    }
}

#tda-progression-heading,
#cumulative-tda-heading {
    margin-top: 50px;
}
