.daily-leaderboard {
  width: min(1050px, calc(100% - 28px));
  margin: -28px auto 54px;
  padding: 22px;
  border: 1px solid #cad5d2;
  border-radius: 22px;
  background: #fff;
  color: #102638;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.daily-leaderboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}

.daily-leaderboard-head p {
  margin: 0;
  color: #16879a;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.daily-leaderboard-head h2 {
  margin: 5px 0 0;
  font-size: 23px;
}

.daily-leaderboard-head span {
  color: #6d8389;
  font-size: 9px;
}

.daily-leaderboard ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  list-style: none;
  margin: 15px 0;
  padding: 0;
}

.daily-leaderboard li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 7px;
  padding: 9px 3px;
  border-bottom: 1px solid #e3e9e6;
  font-size: 10px;
}

.daily-leaderboard li b:last-child {
  color: #087f8c;
}

.daily-leaderboard li.empty {
  display: block;
  color: #75878c;
}

.daily-board-entry {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 13px;
  border-radius: 13px;
  background: #edf7f4;
}

.daily-board-entry.ready {
  display: grid;
}

.daily-board-entry.joined {
  border: 1px solid #76baa1;
  background: #e3f5ec;
}

.daily-board-entry label {
  grid-column: 1 / -1;
  color: #5d777d;
  font-size: 9px;
}

.daily-board-entry input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid #b8c8c3;
  border-radius: 10px;
  padding: 0 11px;
  font: inherit;
}

.daily-board-entry button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: #071f2f;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.daily-board-entry button:disabled {
  cursor: default;
  opacity: .78;
}

.daily-board-status {
  min-height: 16px;
  margin: 9px 0 0;
  color: #6d8389;
  font-size: 11px;
  line-height: 1.45;
}

.daily-board-status.success {
  color: #087853;
  font-weight: 800;
}

.daily-board-status.error {
  color: #a5483d;
  font-weight: 700;
}

.leaderboard-toast {
  position: fixed;
  z-index: 10020;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  border: 1px solid #75bea4;
  border-radius: 14px;
  background: #092b35;
  box-shadow: 0 14px 40px #061d2770;
  color: #fff;
  font: 800 13px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.leaderboard-toast.error {
  border-color: #de8c79;
}

.leaderboard-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 650px) {
  .daily-leaderboard {
    margin-top: -34px;
    padding: 17px;
  }

  .daily-leaderboard-head {
    align-items: start;
    flex-direction: column;
  }

  .daily-leaderboard ol {
    grid-template-columns: 1fr;
  }

  .daily-board-entry {
    grid-template-columns: 1fr;
  }

  .daily-board-entry button {
    width: 100%;
  }

  .leaderboard-toast {
    right: 14px;
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .leaderboard-toast {
    transition: none;
  }
}
