.weak-yearbtn {
  position: relative;
  border-color: rgba(217, 184, 95, .58);
  background: linear-gradient(150deg, rgba(56, 48, 38, .74), #0d1c30 72%);
  color: var(--gold2);
}

.weak-yearbtn small {
  color: #d4b98b;
}

.weak-yearbtn:disabled {
  cursor: default;
  opacity: .48;
  filter: saturate(.45);
}

.yearbtn[data-year="all"] {
  color: var(--gold2);
}

.stat-action {
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.stat-action:hover,
.stat-action:focus-visible {
  border-color: rgba(217, 184, 95, .72);
  background: #132941;
  outline: none;
}

.stat-action:active {
  transform: scale(.97);
}

.stat-action.is-active {
  border-color: rgba(217, 184, 95, .72);
  box-shadow: 0 0 0 1px rgba(217, 184, 95, .16);
}

.mastery-menu-modal {
  width: min(430px, 100%);
}

.mastery-menu-actions {
  display: grid;
  gap: 10px;
  margin-top: 23px;
}

.mastery-action {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border: 1px solid #31577c;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.mastery-action.primary {
  border-color: rgba(217, 184, 95, .72);
  background: linear-gradient(125deg, #d9b85f, #f0d489);
  color: #091425;
}

.mastery-action.secondary {
  background: #102640;
  color: #e6effa;
}

.mastery-cancel {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #9cb0c7;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mastery-list-modal {
  width: min(640px, 100%);
}

.mastery-list-summary {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 20px 0 13px;
  color: #a9bfd6;
}

.mastery-list-summary strong {
  color: var(--gold2);
  font-family: Georgia, serif;
  font-size: 30px;
}

.mastery-list-summary span {
  font-size: 11px;
}

.mastery-word-list {
  display: grid;
  gap: 9px;
}

.mastery-word-row {
  padding: 15px 15px 13px;
  border: 1px solid #284560;
  border-radius: 15px;
  background: rgba(8, 22, 39, .68);
}

.mastery-word-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mastery-word-term {
  color: #f8fbff;
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mastery-word-year {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid #2b4866;
  border-radius: 999px;
  color: #aec3d8;
  font-size: 9px;
}

.mastery-word-meaning {
  margin-top: 8px;
  color: #f1ddaa;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.6;
}

.mastery-word-meta {
  margin-top: 7px;
  color: #849bb6;
  font-size: 10px;
}

.mastery-word-note {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(68, 99, 130, .45);
  color: #a9bcd0;
  font-size: 11px;
  line-height: 1.7;
}

.mastery-list-empty {
  padding: 26px 13px;
  border: 1px solid #284560;
  border-radius: 15px;
  color: #a9bcd0;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 480px) {
  .weak-yearbtn small {
    font-size: 9px;
  }

  .mastery-list-modal,
  .mastery-menu-modal {
    padding: 20px 17px;
  }

  .mastery-word-term {
    font-size: 17px;
  }
}
